Commit 3699eb15 authored by michael's avatar michael

segfault fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4079 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d6cf57a0
...@@ -451,7 +451,7 @@ resync: ...@@ -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;
} }
......
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