Browse Source

alacenc : perform decorrelation only for stereo samples

Originally committed as revision 14904 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Jai Menon 16 years ago
parent
commit
ec6cda8c6e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/alacenc.c

+ 2
- 1
libavcodec/alacenc.c View File

@@ -330,7 +330,8 @@ static void write_compressed_frame(AlacEncodeContext *s)
int i, j; int i, j;


/* only simple mid/side decorrelation supported as of now */ /* 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_shift);
put_bits(&s->pbctx, 8, s->interlacing_leftweight); put_bits(&s->pbctx, 8, s->interlacing_leftweight);




Loading…
Cancel
Save