mirror of https://git.ffmpeg.org/ffmpeg.git
segfault fix
Originally committed as revision 4079 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3ce16b30f7
commit
d46db490b1
|
@ -451,7 +451,7 @@ resync:
|
||||||
index= av_index_search_timestamp(st, pkt->dts, 0);
|
index= av_index_search_timestamp(st, pkt->dts, 0);
|
||||||
e= &st->index_entries[index];
|
e= &st->index_entries[index];
|
||||||
|
|
||||||
if(e->timestamp == ast->frame_offset){
|
if(index >= 0 && e->timestamp == ast->frame_offset){
|
||||||
if (e->flags & AVINDEX_KEYFRAME)
|
if (e->flags & AVINDEX_KEYFRAME)
|
||||||
pkt->flags |= PKT_FLAG_KEY;
|
pkt->flags |= PKT_FLAG_KEY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue