Commit d46db490 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

segfault fix

Originally committed as revision 4079 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 3ce16b30
......@@ -451,7 +451,7 @@ resync:
index= av_index_search_timestamp(st, pkt->dts, 0);
e= &st->index_entries[index];
if(e->timestamp == ast->frame_offset){
if(index >= 0 && e->timestamp == ast->frame_offset){
if (e->flags & AVINDEX_KEYFRAME)
pkt->flags |= PKT_FLAG_KEY;
}
......
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