avformat/avidec: Speed up keyframe detection code
Fixes Ticket3531 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 57fb570908df2e84b11635f12b5be1fb27f053eb) Conflicts: libavformat/avidec.c
This commit is contained in:
parent
7f8aa37bc3
commit
1530fbccac
@ -1198,7 +1198,7 @@ resync:
|
|||||||
int index;
|
int index;
|
||||||
av_assert0(st->index_entries);
|
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];
|
e= &st->index_entries[index];
|
||||||
|
|
||||||
if(index >= 0 && e->timestamp == ast->frame_offset){
|
if(index >= 0 && e->timestamp == ast->frame_offset){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user