changeset 5668:52aae8c63b30 libavcodec

do not ignore return of decode_header()
author michael
date Sun, 09 Sep 2007 17:01:11 +0000
parents 9242e125395f
children d540c7d88344
files snow.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Sun Sep 09 16:54:00 2007 +0000
+++ b/snow.c	Sun Sep 09 17:01:11 2007 +0000
@@ -4438,7 +4438,8 @@
     ff_build_rac_states(c, 0.05*(1LL<<32), 256-8);
 
     s->current_picture.pict_type= FF_I_TYPE; //FIXME I vs. P
-    decode_header(s);
+    if(decode_header(s)<0)
+        return -1;
     common_init_after_header(avctx);
 
     // realloc slice buffer for the case that spatial_decomposition_count changed