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>
Sun, 15 May 2016 16:36:53 +0000 (18:36 +0200)
commit7fe81bc4f8ba684626fa08f7bef46da3e8abe373
treefd8c175fbc9b09ddd313bf4b29cb99b42d3e805f
parent35c23bf67df62d8d6dbfca05e99d6d607c17f7bb
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>
libswresample/rematrix.c