OSDN Git Service

Don't restrict reverse decorrelation to both coded channels. It is also used for...
authorJakub Stachowski <qbast@go2.pl>
Tue, 1 May 2012 22:33:17 +0000 (00:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 2 May 2012 07:04:34 +0000 (09:04 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmalosslessdec.c

index f4166d3..48b767b 100644 (file)
@@ -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;