projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3956a5e
)
fic: Use proper quantization matrix index
author
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Sat, 19 Apr 2014 19:40:35 +0000
(15:40 -0400)
committer
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Tue, 22 Apr 2014 20:20:23 +0000
(21:20 +0100)
The matrices are not zigzagged.
Fixes artefacting.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/fic.c
patch
|
blob
|
history
diff --git
a/libavcodec/fic.c
b/libavcodec/fic.c
index
6b8d28d
..
f0e7116
100644
(file)
--- 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);