aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-22 04:00:32 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-04-23 17:22:06 +0200
commit1530fbccac86a33fe46cf87de901f839d25b5034 (patch)
treea76dc33192740e9507127c0b28164aa9a9c23f20
parent7f8aa37bc3666d060b3eb2baa02fcea3597a22fd (diff)
downloadffmpeg-1530fbccac86a33fe46cf87de901f839d25b5034.tar.gz
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 57fb570908df2e84b11635f12b5be1fb27f053eb) Conflicts: libavformat/avidec.c
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6bd644601c..e3a153af1f 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1198,7 +1198,7 @@ resync:
int index;
av_assert0(st->index_entries);
- 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){