Mercurial > libavcodec.hg
diff h263.c @ 1773:bb5b19529111 libavcodec
segfault fix
author | michael |
---|---|
date | Sat, 31 Jan 2004 21:28:49 +0000 |
parents | 951403db901f |
children | b7340afa261a |
line wrap: on
line diff
--- a/h263.c Sat Jan 31 20:41:07 2004 +0000 +++ b/h263.c Sat Jan 31 21:28:49 2004 +0000 @@ -2178,7 +2178,7 @@ 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