From d2b3c3d7bb12b7a69c6f3201ec4beb1a97712cbd Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Thu, 24 Jan 2002 15:25:11 +0000
Subject: [PATCH] (commit by michael) dc coeff isnt dequantized (bug reported
 by falk hueffner)

Originally committed as revision 278 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/mpegvideo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 37efe1eebe6..6f92f09ac21 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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) {
-- 
GitLab