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 21:20:23 +0100 |
commit | 40b331e1f41cf118bd1b0807cac801437255636f (patch) | |
tree | 773029973451b405f93297ee5c9de3a6167ae029 /libavcodec | |
parent | 3956a5e0ea46ed7e27ca888fe11c47986ad99261 (diff) | |
download | ffmpeg-40b331e1f41cf118bd1b0807cac801437255636f.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')
-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 6b8d28d359..f0e7116318 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); |