Browse code

aacenc: temporarily disable Mid/Side coding with multichannel files

Results in dropping out in channels, usually on EIGHT_SHORT windows.
Will be reenabled once the cause has been investigated and a fix has
been made.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>

Rostislav Pehlivanov authored on 2016/02/13 21:23:22
Showing 1 changed files
... ...
@@ -995,6 +995,10 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
995 995
     ERROR_IF(s->options.ltp && avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL,
996 996
              "The LPT profile requires experimental compliance, add -strict -2 to enable!\n");
997 997
 
998
+    /* M/S introduces horrible artifacts with multichannel files, this is temporary */
999
+    if (s->channels > 3)
1000
+        s->options.mid_side = 0;
1001
+
998 1002
     if ((ret = dsp_init(avctx, s)) < 0)
999 1003
         goto fail;
1000 1004