Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9d9f34a3
Commit
9d9f34a3
authored
Sep 05, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: remove a few useless AV_NOWARN_DEPRECATED().
read_seek was undeprecated in
e5c70815
.
parent
e60fcdb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
utils.c
libavformat/utils.c
+0
-6
No files found.
libavformat/utils.c
View file @
9d9f34a3
...
...
@@ -1926,12 +1926,10 @@ static int seek_frame_generic(AVFormatContext *s,
return
-
1
;
ff_read_frame_flush
(
s
);
AV_NOWARN_DEPRECATED
(
if
(
s
->
iformat
->
read_seek
){
if
(
s
->
iformat
->
read_seek
(
s
,
stream_index
,
timestamp
,
flags
)
>=
0
)
return
0
;
}
)
ie
=
&
st
->
index_entries
[
index
];
if
((
ret
=
avio_seek
(
s
->
pb
,
ie
->
pos
,
SEEK_SET
))
<
0
)
return
ret
;
...
...
@@ -1964,13 +1962,11 @@ static int seek_frame_internal(AVFormatContext *s, int stream_index,
}
/* first, we try the format specific seek */
AV_NOWARN_DEPRECATED
(
if
(
s
->
iformat
->
read_seek
)
{
ff_read_frame_flush
(
s
);
ret
=
s
->
iformat
->
read_seek
(
s
,
stream_index
,
timestamp
,
flags
);
}
else
ret
=
-
1
;
)
if
(
ret
>=
0
)
{
return
0
;
}
...
...
@@ -2017,7 +2013,6 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int
//Fallback to old API if new is not implemented but old is
//Note the old has somewat different sematics
AV_NOWARN_DEPRECATED
(
if
(
s
->
iformat
->
read_seek
||
1
)
{
int
dir
=
(
ts
-
min_ts
>
(
uint64_t
)(
max_ts
-
ts
)
?
AVSEEK_FLAG_BACKWARD
:
0
);
int
ret
=
av_seek_frame
(
s
,
stream_index
,
ts
,
flags
|
dir
);
...
...
@@ -2028,7 +2023,6 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int
}
return
ret
;
}
)
// try some generic seek like seek_frame_generic() but with new ts semantics
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment