]> git.sesse.net Git - ffmpeg/commit
dnxhddata: Fix 10-bit DNxHD quant matrices
authorJoseph Artsimovich <joseph@mirriad.com>
Thu, 1 Oct 2015 15:06:26 +0000 (17:06 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 2 Oct 2015 11:11:57 +0000 (13:11 +0200)
commitbfe1cd80ebeab58cbc1c91ac766a96fce8e4ec1e
treec5e1be23ecc3cdaa34c6915a0b72687e089f3350
parent380146924ecad2e05e9dcc5c3c2e1b5ba47c51e8
dnxhddata: Fix 10-bit DNxHD quant matrices

Convert them to zigzag order, as the rest of them are.

When I was adding support for 10-bit DNxHD, I just copy-pasted the
missing quant matrices from the spec. Now it turns out the existing
matrices in dnxhddata.c were in zigzag order. This resulted in wrong
quantization for 10-bit DNxHD. The attached patch fixes the problem by
converting 10-bit quant matrices to zigzag order.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dnxhddata.c
tests/ref/vsynth/vsynth1-dnxhd-720p-10bit
tests/ref/vsynth/vsynth2-dnxhd-720p-10bit