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

conrad subversion at mplayerhq.hu
Fri Dec 5 01:07:18 CET 2008


Author: conrad
Date: Fri Dec  5 01:07:18 2008
New Revision: 3870

Log:
Spec bug: there is no quant delta for subbands with one codeblock


Modified:
   dirac/libavcodec/diracdec.c

Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c	(original)
+++ dirac/libavcodec/diracdec.c	Fri Dec  5 01:07:18 2008
@@ -155,10 +155,11 @@ static void codeblock(DiracContext *s, i
         /* Determine if this codeblock is a zero block. */
         if (dirac_arith_get_bit(&s->arith, ARITH_CONTEXT_ZERO_BLOCK))
             return;
+
+        if (s->codeblock_mode)
+            *quant += dirac_arith_read_int(&s->arith, &ff_dirac_context_set_quant);
     }
 
-    if (s->codeblock_mode)
-        *quant += dirac_arith_read_int(&s->arith, &ff_dirac_context_set_quant);
     qfactor = coeff_quant_factor(*quant);
     qoffset = coeff_quant_offset(s->refs == 0, *quant) + 2;
 



More information about the FFmpeg-soc mailing list