diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 37efe1eebe684e24cd2e2d822fbb3ccc1be6f434..6f92f09ac21bd0b337c6f5fbbb6a1a46a7ee3a71 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) {