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

conrad subversion at mplayerhq.hu
Thu Jan 1 21:32:15 CET 2009


Author: conrad
Date: Thu Jan  1 21:32:15 2009
New Revision: 3930

Log:
Cosmetics: unneeded if() and {}

Modified:
   dirac/libavcodec/diracdec.c

Modified: dirac/libavcodec/diracdec.c
==============================================================================
--- dirac/libavcodec/diracdec.c	Thu Jan  1 21:32:12 2009	(r3929)
+++ dirac/libavcodec/diracdec.c	Thu Jan  1 21:32:15 2009	(r3930)
@@ -161,10 +161,8 @@ static inline void coeff_unpack_arith(Di
 
     read_sign = coeff;
     coeff = coeff_dequant(coeff, qoffset, qfactor);
-    if (read_sign) {
-        if (dirac_get_arith_bit(&s->arith, sign_ctx))
-            coeff = -coeff;
-    }
+    if (read_sign && dirac_get_arith_bit(&s->arith, sign_ctx))
+        coeff = -coeff;
 
     *coeffp = coeff;
 }



More information about the FFmpeg-soc mailing list