[FFmpeg-soc] [soc]: r3776 - dirac/libavcodec/diracdec.c

conrad subversion at mplayerhq.hu
Mon Nov 10 04:11:22 CET 2008


Author: conrad
Date: Mon Nov 10 04:11:21 2008
New Revision: 3776

Log:
Check parse_frame return


Modified:
   dirac/libavcodec/diracdec.c

Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c	(original)
+++ dirac/libavcodec/diracdec.c	Mon Nov 10 04:11:21 2008
@@ -1070,7 +1070,8 @@ int dirac_decode_frame(AVCodecContext *a
     s->refs = parse_code & 0x03;
     s->picture.reference = (parse_code & 0x0C) == 0x0C;
 
-    parse_frame(s);
+    if (parse_frame(s) < 0)
+        return -1;
 
     avctx->pix_fmt = PIX_FMT_YUVJ420P; /* XXX */
 



More information about the FFmpeg-soc mailing list