Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7658:152d97e263f5 | 7659:b87a9296e854 |
---|---|
328 static void write_compressed_frame(AlacEncodeContext *s) | 328 static void write_compressed_frame(AlacEncodeContext *s) |
329 { | 329 { |
330 int i, j; | 330 int i, j; |
331 | 331 |
332 /* only simple mid/side decorrelation supported as of now */ | 332 /* only simple mid/side decorrelation supported as of now */ |
333 alac_stereo_decorrelation(s); | 333 if(s->avctx->channels == 2) |
334 alac_stereo_decorrelation(s); | |
334 put_bits(&s->pbctx, 8, s->interlacing_shift); | 335 put_bits(&s->pbctx, 8, s->interlacing_shift); |
335 put_bits(&s->pbctx, 8, s->interlacing_leftweight); | 336 put_bits(&s->pbctx, 8, s->interlacing_leftweight); |
336 | 337 |
337 for(i=0;i<s->avctx->channels;i++) { | 338 for(i=0;i<s->avctx->channels;i++) { |
338 | 339 |