[FFmpeg-cvslog] avformat/avidec: Speed up keyframe detection code
Michael Niedermayer
git at videolan.org
Tue Apr 22 04:39:09 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 04:00:32 2014 +0200| [57fb570908df2e84b11635f12b5be1fb27f053eb] | committer: Michael Niedermayer
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=57fb570908df2e84b11635f12b5be1fb27f053eb
---
libavformat/avidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 84d6ed1..562a255 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1413,7 +1413,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