diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 04:00:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 04:33:20 +0200 |
commit | 57fb570908df2e84b11635f12b5be1fb27f053eb (patch) | |
tree | ecfae851965b4333102668434fb67760bc101037 | |
parent | 84d6ba60db953813c0b540eafb84a8514689ad40 (diff) | |
download | ffmpeg-57fb570908df2e84b11635f12b5be1fb27f053eb.tar.gz |
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 84d6ed1d66..562a25523c 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1413,7 +1413,7 @@ FF_ENABLE_DEPRECATION_WARNINGS AVIndexEntry *e; int index; - index = av_index_search_timestamp(st, ast->frame_offset, 0); + index = av_index_search_timestamp(st, ast->frame_offset, AVSEEK_FLAG_ANY); e = &st->index_entries[index]; if (index >= 0 && e->timestamp == ast->frame_offset) { |