From 85d7f546627d393eff948edfb93cf15f56a0b0d8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 21 Mar 2013 15:49:22 +0100 Subject: sonicenc: fix mono decorrelation Signed-off-by: Michael Niedermayer --- libavcodec/sonic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/sonic.c') diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c index a7e0a00b7c..45cd902ddd 100644 --- a/libavcodec/sonic.c +++ b/libavcodec/sonic.c @@ -513,6 +513,8 @@ static av_cold int sonic_encode_init(AVCodecContext *avctx) if (avctx->channels == 2) s->decorrelation = MID_SIDE; + else + s->decorrelation = 3; if (avctx->codec->id == AV_CODEC_ID_SONIC_LS) { -- cgit v1.2.3