From 6896dcbf5f1f2f2b0e4425bc96a328299487c0ea Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 22 Apr 2014 04:00:32 +0200 Subject: avformat/avidec: Speed up keyframe detection code Fixes Ticket3531 Signed-off-by: Michael Niedermayer (cherry picked from commit 57fb570908df2e84b11635f12b5be1fb27f053eb) --- libavformat/avidec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') 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) { -- cgit v1.2.3