Skip to content
Snippets Groups Projects
Commit 40b331e1 authored by Derek Buitenhuis's avatar Derek Buitenhuis
Browse files

fic: Use proper quantization matrix index


The matrices are not zigzagged.

Fixes artefacting.

Signed-off-by: default avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 3956a5e0
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,8 @@ static int fic_decode_block(FICContext *ctx, GetBitContext *gb, ...@@ -146,7 +146,8 @@ static int fic_decode_block(FICContext *ctx, GetBitContext *gb,
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
for (i = 0; i < num_coeff; i++) 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); fic_idct_put(dst, stride, block);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment