From 8e1652dc9dac6cd6ccb30cac1b646f3af96c3ca9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 30 Sep 2002 10:06:17 +0000 Subject: [PATCH] forgot zigzag_direct[] behind #ifdef DEBUG (found by Klaas-Pieter Vlieg ) Originally committed as revision 984 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg12.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 0ae140f02c..41f942cdd8 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -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 {