changeset 7659:b87a9296e854 libavcodec

alacenc : perform decorrelation only for stereo samples
author jai_menon
date Fri, 22 Aug 2008 14:57:35 +0000
parents 152d97e263f5
children 6fe7ff34a4db
files alacenc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);