summaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-02-13 12:23:22 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-02-13 12:23:22 +0000
commit0fe0e213c042d3c36710f11dd607bd34f5eca1f1 (patch)
tree8215a08a141b935f6cc6895fb3cd0eb012b6a38b /libavcodec/aacenc.c
parent588e2e338717078e88b0a7526e3740b7d3f6d207 (diff)
downloadffmpeg-0fe0e213c042d3c36710f11dd607bd34f5eca1f1.tar.gz
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>
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 1de266de62..5a70da1764 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -995,6 +995,10 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
ERROR_IF(s->options.ltp && avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL,
"The LPT profile requires experimental compliance, add -strict -2 to enable!\n");
+ /* M/S introduces horrible artifacts with multichannel files, this is temporary */
+ if (s->channels > 3)
+ s->options.mid_side = 0;
+
if ((ret = dsp_init(avctx, s)) < 0)
goto fail;