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

conrad subversion at mplayerhq.hu
Mon Nov 10 04:12:01 CET 2008


Author: conrad
Date: Mon Nov 10 04:12:00 2008
New Revision: 3793

Log:
Interlacing flag isn't a boolean; it's an uint that's defined to be 0 or 1


Modified:
   dirac/libavcodec/diracdec.c

Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c	(original)
+++ dirac/libavcodec/diracdec.c	Mon Nov 10 04:12:00 2008
@@ -73,7 +73,9 @@ static int parse_source_parameters(Dirac
 
     if (get_bits1(gb))
         /* Interlace.  */
-        s->source.interlaced = get_bits1(gb);
+        s->source.interlaced = svq3_get_ue_golomb(gb);
+    if (s->source.interlaced > 1)
+        return -1;
 
     /* Framerate.  */
     if (get_bits1(gb)) {



More information about the FFmpeg-soc mailing list