[FFmpeg-cvslog] Don't restrict reverse decorrelation to both coded channels. It is also used for mono data.
Jakub Stachowski
git at videolan.org
Wed May 2 11:34:17 CEST 2012
ffmpeg | branch: master | Jakub Stachowski <qbast at go2.pl> | Wed May 2 00:33:17 2012 +0200| [8501bed08ce44e30a8bf926fe6700225d65d7b24] | committer: Michael Niedermayer
Don't restrict reverse decorrelation to both coded channels. It is also used for mono data.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8501bed08ce44e30a8bf926fe6700225d65d7b24
---
libavcodec/wmalosslessdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index f4166d3..48b767b 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -793,7 +793,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size)
{
if (s->num_channels != 2)
return;
- else if (s->is_channel_coded[0] && s->is_channel_coded[1]) {
+ else {
int icoef;
for (icoef = 0; icoef < tile_size; icoef++) {
s->channel_residues[0][icoef] -= s->channel_residues[1][icoef] >> 1;
More information about the ffmpeg-cvslog
mailing list