changeset 1773:bb5b19529111 libavcodec

segfault fix
author michael
date Sat, 31 Jan 2004 21:28:49 +0000
parents 8cd5257195c9
children 1efd0f9aa22a
files h263.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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