alacenc : perform decorrelation only for stereo samples
Originally committed as revision 14904 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9b9466b0cd
commit
ec6cda8c6e
@ -330,6 +330,7 @@ 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 */
|
||||||
|
if(s->avctx->channels == 2)
|
||||||
alac_stereo_decorrelation(s);
|
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…
x
Reference in New Issue
Block a user