[FFmpeg-cvslog] avformat/avidec: Speed up keyframe detection code
Michael Niedermayer
git at videolan.org
Wed Apr 23 17:26:34 CEST 2014
ffmpeg | branch: release/1.2 | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 22 04:00:32 2014 +0200| [1530fbccac86a33fe46cf87de901f839d25b5034] | 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)
Conflicts:
libavformat/avidec.c
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1530fbccac86a33fe46cf87de901f839d25b5034
---
libavformat/avidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6bd6446..e3a153a 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1198,7 +1198,7 @@ resync:
int index;
av_assert0(st->index_entries);
- 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