# HG changeset patch # User michael # Date 1075584529 0 # Node ID bb5b19529111f6ee24a34372a2b050d3b7a08607 # Parent 8cd5257195c95651338152103c0baf7aa4a51c87 segfault fix diff -r 8cd5257195c9 -r bb5b19529111 h263.c --- 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