From 4f1c7e3c927adb66b928308df2446542c17503c0 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Tue, 7 Aug 2001 22:48:42 +0000 Subject: [PATCH] fixed block permutation in encoder (not optimal - should move it in forward DCT code) Originally committed as revision 51 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegvideo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index c046dd2315..a2b1cb61eb 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1068,6 +1068,10 @@ static int dct_quantize_mmx(MpegEncContext *s, const int *qmat; av_fdct (block); + + /* we need this permutation so that we correct the IDCT + permutation. will be moved into DCT code */ + block_permute(block); if (s->mb_intra) { if (n < 4)