[FFmpeg-devel] [PATCH 1/2] fic: Use proper quantization matrix index
Derek Buitenhuis
derek.buitenhuis at gmail.com
Mon Apr 21 19:02:59 CEST 2014
The matrices are not zigzagged.
Fixes artefacting.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
libavcodec/fic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 1b2811c..8862e08 100644
--- a/libavcodec/fic.c
+++ b/libavcodec/fic.c
@@ -146,7 +146,8 @@ static int fic_decode_block(FICContext *ctx, GetBitContext *gb,
return AVERROR_INVALIDDATA;
for (i = 0; i < num_coeff; i++)
- block[ff_zigzag_direct[i]] = get_se_golomb(gb) * ctx->qmat[i];
+ block[ff_zigzag_direct[i]] = get_se_golomb(gb) *
+ ctx->qmat[ff_zigzag_direct[i]];
fic_idct_put(dst, stride, block);
--
1.9.2
More information about the ffmpeg-devel
mailing list