Browse Source

fic: Use proper quantization matrix index

The matrices are not zigzagged.

Fixes artefacting.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
tags/n2.3
Derek Buitenhuis 12 years ago
parent
commit
40b331e1f4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/fic.c

+ 2
- 1
libavcodec/fic.c View File

@@ -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);



Loading…
Cancel
Save