wmalosslessdec: Reset residues to 0 if they were not decoded from bitstream.
authorJakub Stachowski <qbast@go2.pl>
Wed, 11 Apr 2012 21:36:07 +0000 (23:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Apr 2012 10:41:53 +0000 (12:41 +0200)
commit3b00fd5985c3ddffe7f66f72dcaa13b478fc7459
tree79349ced22c5ba3d0036d8a26f6468d62161d5ff
parent9e938d22c547654fcc19864f568288342ae2f3be
wmalosslessdec: Reset residues to 0 if they were not decoded from bitstream.

If channel residues are have not been decoded from bitstream, they should be
initialized to 0 instead of using values from previous subframe.
This causes bursts of noise in silent parts of some files.
This patch fixes bug #1055

Reviewed-by: Benjamin Larsson <benjamin@southpole.se>
Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmalosslessdec.c