1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

alacenc : perform decorrelation only for stereo samples

Originally committed as revision 14904 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Jai Menon 2008-08-22 14:57:35 +00:00
parent 9b9466b0cd
commit ec6cda8c6e

View File

@ -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);