[FFmpeg-cvslog] avformat/avidec: Speed up keyframe detection code
Michael Niedermayer
git at videolan.org
Wed Apr 23 17:26:46 CEST 2014
ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 04:00:32 2014 +0200| [6896dcbf5f1f2f2b0e4425bc96a328299487c0ea] | committer: Carl Eugen Hoyos
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 57fb570908df2e84b11635f12b5be1fb27f053eb)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6896dcbf5f1f2f2b0e4425bc96a328299487c0ea
---
libavformat/avidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index bab62a0..0e38281 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) {
More information about the ffmpeg-cvslog
mailing list