(commit by michael)
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Jan 2002 15:25:11 +0000 (15:25 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Jan 2002 15:25:11 +0000 (15:25 +0000)
dc coeff isnt dequantized (bug reported by falk hueffner)

Originally committed as revision 278 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index 37efe1e..6f92f09 100644 (file)
@@ -1284,7 +1284,7 @@ static void dct_unquantize_mpeg1_c(MpegEncContext *s,
     } else {
         i = 0;
         quant_matrix = s->non_intra_matrix;
-        for(i=1;i<nCoeffs;i++) {
+        for(;i<nCoeffs;i++) {
             int j= zigzag_direct[i];
             level = block[j];
             if (level) {