[FFmpeg-cvslog] sonicenc: fix mono decorrelation

Michael Niedermayer git at videolan.org
Thu Mar 21 16:13:26 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 21 15:49:22 2013 +0100| [85d7f546627d393eff948edfb93cf15f56a0b0d8] | committer: Michael Niedermayer

sonicenc: fix mono decorrelation

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85d7f546627d393eff948edfb93cf15f56a0b0d8
---

 libavcodec/sonic.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/sonic.c b/libavcodec/sonic.c
index a7e0a00..45cd902 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)
     {



More information about the ffmpeg-cvslog mailing list