diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-01-31 21:28:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-31 21:28:49 +0000 |
commit | a62d75da98829eade6edfe5aba64d991017eb9cd (patch) | |
tree | ef68fe3656e51cf765bb92bd33027f31c0d041c5 /libavcodec | |
parent | fb85b027f6bec30e49301399faefcffada948347 (diff) | |
download | ffmpeg-a62d75da98829eade6edfe5aba64d991017eb9cd.tar.gz |
segfault fix
Originally committed as revision 2737 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h263.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index 1d6a09ee39..de9110a4e2 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -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 |