From 8501bed08ce44e30a8bf926fe6700225d65d7b24 Mon Sep 17 00:00:00 2001 From: Jakub Stachowski Date: Wed, 2 May 2012 00:33:17 +0200 Subject: [PATCH] Don't restrict reverse decorrelation to both coded channels. It is also used for mono data. Signed-off-by: Michael Niedermayer --- libavcodec/wmalosslessdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c index f4166d338e..48b767b18a 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;