Commit 0339be14 authored by michael's avatar michael

segfault fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2737 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4636bcaf
......@@ -2178,7 +2178,7 @@ static void mpeg4_encode_gop_header(MpegEncContext * s){
put_bits(&s->pb, 16, 0);
put_bits(&s->pb, 16, GOP_STARTCODE);
if(s->current_picture_ptr->pts){
if(s->current_picture_ptr->pts && s->reordered_input_picture[1]){
time= FFMIN(s->reordered_input_picture[1]->pts, s->current_picture_ptr->pts);
time= (time*s->time_increment_resolution + 500*1000)/(1000*1000);
}else
......
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