[FFmpeg-soc] [soc]: r1234 - dirac/libavcodec/dirac.c
marco
subversion at mplayerhq.hu
Wed Aug 29 10:48:51 CEST 2007
Author: marco
Date: Wed Aug 29 10:48:51 2007
New Revision: 1234
Log:
simplify dequantization code
Modified:
dirac/libavcodec/dirac.c
Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c (original)
+++ dirac/libavcodec/dirac.c Wed Aug 29 10:48:51 2007
@@ -820,15 +820,15 @@ static int inline coeff_quant_offset(Dir
*/
static int inline coeff_dequant(int coeff,
int qoffset, int qfactor) {
- int magnitude = coeff * qfactor;
-
- if (! magnitude)
+ if (! coeff)
return 0;
- magnitude += qoffset;
- magnitude >>= 2;
+ coeff *= qfactor;
- return magnitude;
+ coeff += qoffset;
+ coeff >>= 2;
+
+ return coeff;
}
/**
More information about the FFmpeg-soc
mailing list