mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
segfault fix
Originally committed as revision 2737 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
fb85b027f6
commit
a62d75da98
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user