aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>2012-02-18 21:00:03 +0600
committerMashiat Sarker Shakkhar <shahriman_ams@yahoo.com>2012-02-18 21:04:10 +0600
commita520a9946f25fe36000558cf8bb512109ea40353 (patch)
tree97a2bdd561ed0c3129baf192deb2b283a574fd46
parent7f215e3e725ddd45e6fc1e012aadcc5fd83ee1b5 (diff)
downloadffmpeg-a520a9946f25fe36000558cf8bb512109ea40353.tar.gz
Perform inter-channel decorr. only if both channels are coded
-rw-r--r--libavcodec/wmalosslessdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 30c055bcc4..899645afa1 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -1025,7 +1025,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size)
int icoef;
if (s->num_channels != 2)
return;
- else {
+ else if (s->is_channel_coded[0] && s->is_channel_coded[1]) {
for (icoef = 0; icoef < tile_size; icoef++) {
s->channel_residues[0][icoef] -= s->channel_residues[1][icoef] >> 1;
s->channel_residues[1][icoef] += s->channel_residues[0][icoef];