diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-22 04:00:32 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-04-23 17:11:23 +0200 |
commit | 6896dcbf5f1f2f2b0e4425bc96a328299487c0ea (patch) | |
tree | f9613163fc49906233988a8ece14eefc2d3da088 | |
parent | 14404170b95913e80555416f921e78c58f3ffff0 (diff) | |
download | ffmpeg-6896dcbf5f1f2f2b0e4425bc96a328299487c0ea.tar.gz |
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 57fb570908df2e84b11635f12b5be1fb27f053eb)
-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 bab62a08c1..0e38281c03 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1315,7 +1315,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) { |