--- quant_mpeg.c 2006/07/10 08:09:59 1.3 +++ quant_mpeg.c 2008/11/26 01:04:34 1.4 @@ -19,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: quant_mpeg.c,v 1.3 2006/07/10 08:09:59 syskin Exp $ + * $Id: quant_mpeg.c,v 1.4 2008/11/26 01:04:34 Isibaar Exp $ * ****************************************************************************/ @@ -79,9 +79,9 @@ int rounding = 1<<(SCALEBITS-1-3); coeff[0] = DIV_DIV(data[0], (int32_t) dcscalar); - - for (i = 1; i < 64; i++) { - int level = data[i]; + + for (i = 1; i < 64; i++) { + int32_t level = data[i]; level *= intra_matrix_rec[i]; level = (level + rounding)>>(SCALEBITS-3); coeff[i] = level;