changeset 1939:71fe2180024c libavcodec

segfault fix
author michael
date Fri, 16 Apr 2004 01:02:39 +0000
parents e2501e6e7ff7
children 2511d3e4513e
files h263dec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Fri Apr 16 01:01:45 2004 +0000
+++ b/h263dec.c	Fri Apr 16 01:02:39 2004 +0000
@@ -716,7 +716,8 @@
         ff_print_debug_info(s, pict);
     } else {
         *pict= *(AVFrame*)&s->last_picture;
-        ff_print_debug_info(s, pict);
+        if(pict)
+            ff_print_debug_info(s, pict);
     }
 
     /* Return the Picture timestamp as the frame number */