mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
84d6ba60db
commit
57fb570908
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user