dnxhd: Fix 10-bit DNxHD quant matrices
authorJoseph Artsimovich <joseph@mirriad.com>
Fri, 20 Jul 2012 10:31:06 +0000 (11:31 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Jul 2012 13:24:27 +0000 (15:24 +0200)
commit99c4e91dfa14f1a81f85062eae03a3d04a157817
tree3c04bf9c63bc627d3aadfe150730522433eed3f1
parenta4f94f24b4f153c30bbcaa700bedfb2b3a581e5e
dnxhd: 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/fate/vsynth1-dnxhd-720p-10bit
tests/ref/fate/vsynth2-dnxhd-720p-10bit