swresample/rematrix: Use error diffusion to avoid error in the DC component of the...
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 May 2016 16:33:09 +0000 (18:33 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Aug 2016 16:54:34 +0000 (18:54 +0200)
commit500cf2e159fd7f3dd7da9bbe770eb5f2ef590ad0
treed76a73408bc4409a3f144bcf4bdb55f1faed23dd
parent345231336fd22d23d59fd5c0d969459681b02a6a
swresample/rematrix: Use error diffusion to avoid error in the DC component of the matrix

This fixes the sum of the integer coefficients ending up summing to a value
larger than the value representing unity.

This issue occurs with qN0.dts when converting to stereo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7fe81bc4f8ba684626fa08f7bef46da3e8abe373)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswresample/rematrix.c