Author: conrad
Date: Thu Dec  4 22:10:30 2008
New Revision: 3862

Log:
Simplify mean calculation in intra dc pred (simply different rounding than C)


Modified:
   dirac/libavcodec/dirac.h

Modified: dirac/libavcodec/dirac.h
==============================================================================
--- dirac/libavcodec/dirac.h    (original)
+++ dirac/libavcodec/dirac.h    Thu Dec  4 22:10:30 2008
@@ -382,9 +382,8 @@ int intra_dc_coeff_prediction(DiracConte
                 + coeff[-s->padded_width - 1]);
         if (pred > 0)
             pred = (pred + 1) / 3;
-        else /* XXX: For now just do what the reference
-                implementation does.  Check this. */
-            pred = -((-pred)+1)/3;
+        else
+            pred = (pred - 1) / 3;
     } else if (x > 0) {
         /* Just use the coefficient left of this one. */
         pred = coeff[-1];
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to