Commit 8501bed0 authored by Jakub Stachowski's avatar Jakub Stachowski Committed by Michael Niedermayer

Don't restrict reverse decorrelation to both coded channels. It is also used for mono data.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 29ec5c11
...@@ -793,7 +793,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size) ...@@ -793,7 +793,7 @@ static void revert_inter_ch_decorr(WmallDecodeCtx *s, int tile_size)
{ {
if (s->num_channels != 2) if (s->num_channels != 2)
return; return;
else if (s->is_channel_coded[0] && s->is_channel_coded[1]) { else {
int icoef; int icoef;
for (icoef = 0; icoef < tile_size; icoef++) { for (icoef = 0; icoef < tile_size; icoef++) {
s->channel_residues[0][icoef] -= s->channel_residues[1][icoef] >> 1; s->channel_residues[0][icoef] -= s->channel_residues[1][icoef] >> 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment