Commit 57fb5709 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/avidec: Speed up keyframe detection code

Fixes Ticket3531
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 84d6ba60
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment