# HG changeset patch # User jai_menon # Date 1219417055 0 # Node ID b87a9296e854f02055e03b4017c93871fbe8d36e # Parent 152d97e263f52a461339a7a53d79f2079784627a alacenc : perform decorrelation only for stereo samples diff -r 152d97e263f5 -r b87a9296e854 alacenc.c --- a/alacenc.c Thu Aug 21 23:52:48 2008 +0000 +++ b/alacenc.c Fri Aug 22 14:57:35 2008 +0000 @@ -330,7 +330,8 @@ int i, j; /* only simple mid/side decorrelation supported as of now */ - alac_stereo_decorrelation(s); + if(s->avctx->channels == 2) + alac_stereo_decorrelation(s); put_bits(&s->pbctx, 8, s->interlacing_shift); put_bits(&s->pbctx, 8, s->interlacing_leftweight);