diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-04-19 15:40:35 -0400 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2014-04-22 16:22:08 -0400 |
commit | 6d149d28183a59a28143431f8e629484a52948b2 (patch) | |
tree | 93ed348d396e0bac6a2fa043e30ab7cacacff566 /libavcodec/fic.c | |
parent | ab14bcb10420137bfd85ae5c2b04f5924fac1509 (diff) | |
download | ffmpeg-6d149d28183a59a28143431f8e629484a52948b2.tar.gz |
fic: Use proper quantization matrix index
The matrices are not zigzagged.
Fixes artefacting.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/fic.c')
-rw-r--r-- | libavcodec/fic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/fic.c b/libavcodec/fic.c index 1b2811c14e..8862e08041 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); |