[FFmpeg-soc] [soc]: r3850 - dirac/libavcodec/dirac.c

conrad subversion at mplayerhq.hu
Wed Dec 3 22:28:51 CET 2008


Author: conrad
Date: Wed Dec  3 22:28:50 2008
New Revision: 3850

Log:
Fail with an unsupported picture coding mode


Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Wed Dec  3 22:28:50 2008
@@ -352,8 +352,11 @@ int ff_dirac_parse_sequence_header(GetBi
 
     // coded as fields
     picture_coding_mode = svq3_get_ue_golomb(gb);
-    if (picture_coding_mode == 1)
-        source->height >>= 1;
+    if (picture_coding_mode != 0) {
+        av_log(avctx, AV_LOG_ERROR, "Unsupported picture coding mode %d",
+               picture_coding_mode);
+        return -1;
+    }
 
     return 0;
 }



More information about the FFmpeg-soc mailing list