Skip to content
Snippets Groups Projects
Commit a520a994 authored by Mashiat Sarker Shakkhar's avatar Mashiat Sarker Shakkhar
Browse files

Perform inter-channel decorr. only if both channels are coded

parent 7f215e3e
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment