aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMashiat Sarker Shakkhar <mashiat.sarker@gmail.com>2012-05-03 10:14:47 -0700
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-05-05 12:38:37 +0200
commit363c3a44ff9afbf85fc2c4ba460173e39b0d043c (patch)
tree29863363a77681e17ebbc0d1f3fff744d0e1650f /libavcodec
parent44f99fe0f5e688833cb671efbaa0beb6b74c9389 (diff)
downloadffmpeg-363c3a44ff9afbf85fc2c4ba460173e39b0d043c.tar.gz
WMAL: Restore removed code in mclms_predict()
Based on observations made by Jakub Stachowski <qbast@go2.pl> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wmalosslessdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index ff6308343e..7510b12ef9 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];