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
3fc66dfe
Commit
3fc66dfe
authored
May 03, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: filter out AVSEEK_FLAG_BACKWARD in new API.
Also document that it has no effect.
parent
cc24afb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
avformat.h
libavformat/avformat.h
+1
-0
utils.c
libavformat/utils.c
+1
-0
No files found.
libavformat/avformat.h
View file @
3fc66dfe
...
@@ -1687,6 +1687,7 @@ int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp,
...
@@ -1687,6 +1687,7 @@ int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp,
* or if stream_index is -1, in AV_TIME_BASE units.
* or if stream_index is -1, in AV_TIME_BASE units.
* If flags contain AVSEEK_FLAG_ANY, then non-keyframes are treated as
* If flags contain AVSEEK_FLAG_ANY, then non-keyframes are treated as
* keyframes (this may not be supported by all demuxers).
* keyframes (this may not be supported by all demuxers).
* If flags contain AVSEEK_FLAG_BACKWARD, it is ignored.
*
*
* @param stream_index index of the stream which is used as time base reference
* @param stream_index index of the stream which is used as time base reference
* @param min_ts smallest acceptable timestamp
* @param min_ts smallest acceptable timestamp
...
...
libavformat/utils.c
View file @
3fc66dfe
...
@@ -2164,6 +2164,7 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int
...
@@ -2164,6 +2164,7 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int
if
(
s
->
seek2any
>
0
)
if
(
s
->
seek2any
>
0
)
flags
|=
AVSEEK_FLAG_ANY
;
flags
|=
AVSEEK_FLAG_ANY
;
flags
&=
~
AVSEEK_FLAG_BACKWARD
;
if
(
s
->
iformat
->
read_seek2
)
{
if
(
s
->
iformat
->
read_seek2
)
{
int
ret
;
int
ret
;
...
...
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