WMAL: Restore removed code in mclms_predict()
authorMashiat Sarker Shakkhar <mashiat.sarker@gmail.com>
Thu, 3 May 2012 17:14:47 +0000 (10:14 -0700)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 5 May 2012 10:38:37 +0000 (12:38 +0200)
Based on observations made by Jakub Stachowski <qbast@go2.pl>

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
libavcodec/wmalosslessdec.c

index ff63083..7510b12 100644 (file)
@@ -655,6 +655,8 @@ static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
 
     for (ich = 0; ich < num_channels; ich++) {
         pred[ich] = 0;
+        if (!s->is_channel_coded[ich])
+            continue;
         for (i = 0; i < order * num_channels; i++)
             pred[ich] += s->mclms_prevvalues[i + s->mclms_recent] *
                          s->mclms_coeffs[i + order * num_channels * ich];