Mercurial > libavcodec.hg
diff alacenc.c @ 7659:b87a9296e854 libavcodec
alacenc : perform decorrelation only for stereo samples
author | jai_menon |
---|---|
date | Fri, 22 Aug 2008 14:57:35 +0000 |
parents | 5c2299115d1f |
children | 4525dcd81357 |
line wrap: on
line diff
--- 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);