aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJai Menon <jmenon86@gmail.com>2008-08-22 14:57:35 +0000
committerJai Menon <jmenon86@gmail.com>2008-08-22 14:57:35 +0000
commitec6cda8c6eb644d70ba8f9f931d8d4c5513d449d (patch)
tree5f0cead1d395509dabf1a405297f984ed54a4215 /libavcodec
parent9b9466b0cd15f88bcd2cff2d30b1f67d2e8755d1 (diff)
downloadffmpeg-ec6cda8c6eb644d70ba8f9f931d8d4c5513d449d.tar.gz
alacenc : perform decorrelation only for stereo samples
Originally committed as revision 14904 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/alacenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 85adb40a7a..afa1ac68e0 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -330,7 +330,8 @@ static void write_compressed_frame(AlacEncodeContext *s)
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);