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:16:36 +0200
commit116b959565d306fefd2c2dd676ea507e49274388 (patch)
tree873a3f1951b4fd65c618e465403b4dc9e3e9efeb
parent7269ab10c5179baa6928164b1bb932a62398d365 (diff)
downloadffmpeg-116b959565d306fefd2c2dd676ea507e49274388.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6d731feac5..ef2032d9f6 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1354,7 +1354,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) {