Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-22 06:00:32 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-04-23 19:11:23 +0400
commit6896dcbf5f1f2f2b0e4425bc96a328299487c0ea (patch)
treef9613163fc49906233988a8ece14eefc2d3da088 /libavformat
parent14404170b95913e80555416f921e78c58f3ffff0 (diff)
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 57fb570908df2e84b11635f12b5be1fb27f053eb)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avidec.c2
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) {