[SCM] libav/experimental: fic: Use proper quantization matrix index
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:02:56 UTC 2014
The following commit has been merged in the experimental branch:
commit 40b331e1f41cf118bd1b0807cac801437255636f
Author: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Date: Sat Apr 19 15:40:35 2014 -0400
fic: Use proper quantization matrix index
The matrices are not zigzagged.
Fixes artefacting.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
diff --git a/libavcodec/fic.c b/libavcodec/fic.c
index 6b8d28d..f0e7116 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list