[FFmpeg-cvslog] WMAL: Restore removed code in mclms_predict()

Mashiat Sarker Shakkhar git at videolan.org
Sat May 5 20:36:37 CEST 2012


ffmpeg | branch: master | Mashiat Sarker Shakkhar <mashiat.sarker at gmail.com> | Thu May  3 10:14:47 2012 -0700| [363c3a44ff9afbf85fc2c4ba460173e39b0d043c] | committer: Kostya Shishkov

WMAL: Restore removed code in mclms_predict()

Based on observations made by Jakub Stachowski <qbast at go2.pl>

Signed-off-by: Kostya Shishkov <kostya.shishkov at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=363c3a44ff9afbf85fc2c4ba460173e39b0d043c
---

 libavcodec/wmalosslessdec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index ff63083..7510b12 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -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];



More information about the ffmpeg-cvslog mailing list