]> git.sesse.net Git - ffmpeg/commitdiff
forgot zigzag_direct[] behind #ifdef DEBUG (found by Klaas-Pieter Vlieg <vlieg at...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Sep 2002 10:06:17 +0000 (10:06 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 Sep 2002 10:06:17 +0000 (10:06 +0000)
Originally committed as revision 984 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpeg12.c

index 0ae140f02c0aee439c51d35aeb76fb6af2067d44..41f942cdd8a54798419ce47413707ecfe090700f 100644 (file)
@@ -1630,7 +1630,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
 #ifdef DEBUG
         dprintf("intra matrix present\n");
         for(i=0;i<64;i++)
-            dprintf(" %d", s->intra_matrix[zigzag_direct[i]]);
+            dprintf(" %d", s->intra_matrix[s->intra_scantable.permutated[i]]);
         printf("\n");
 #endif
     } else {
@@ -1651,7 +1651,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
 #ifdef DEBUG
         dprintf("non intra matrix present\n");
         for(i=0;i<64;i++)
-            dprintf(" %d", s->inter_matrix[zigzag_direct[i]]);
+            dprintf(" %d", s->inter_matrix[s->intra_scantable.permutated[i]]);
         printf("\n");
 #endif
     } else {