[FFmpeg-cvslog] avformat/avidec: Speed up keyframe detection code

Michael Niedermayer git at videolan.org
Wed Apr 23 17:26:42 CEST 2014


ffmpeg | branch: release/2.1 | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 04:00:32 2014 +0200| [116b959565d306fefd2c2dd676ea507e49274388] | 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=116b959565d306fefd2c2dd676ea507e49274388
---

 libavformat/avidec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6d731fe..ef2032d 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) {



More information about the ffmpeg-cvslog mailing list