diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-24 02:31:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-24 02:31:56 +0100 |
commit | b955d4072e3e563b230c9ab4d6575577a3dc7314 (patch) | |
tree | fe046504e75d5918e9bfb7a2e95cab3b9063bbbe /libavcodec/libfaac.c | |
parent | f58d67000247eb8ac5029c3f16634d5851d4dfa9 (diff) | |
download | ffmpeg-b955d4072e3e563b230c9ab4d6575577a3dc7314.tar.gz |
Revert "Fix multi-channel AAC encoding."
This reverts commit b3452771c4550b46ea54d15be6cfe8cc10585199.
A better solution was implemented by Nathan Caldwell.
Conflicts:
libavcodec/aacenc.c
Diffstat (limited to 'libavcodec/libfaac.c')
-rw-r--r-- | libavcodec/libfaac.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/libfaac.c b/libavcodec/libfaac.c index 31dc1a41ed..4758cf7462 100644 --- a/libavcodec/libfaac.c +++ b/libavcodec/libfaac.c @@ -31,13 +31,6 @@ typedef struct FaacAudioContext { faacEncHandle faac_handle; } FaacAudioContext; -static const int channel_maps[][6] = { - { 2, 0, 1 }, //< C L R - { 2, 0, 1, 3 }, //< C L R Cs - { 2, 0, 1, 3, 4 }, //< C L R Ls Rs - { 2, 0, 1, 4, 5, 3 }, //< C L R Ls Rs LFE -}; - static av_cold int Faac_encode_init(AVCodecContext *avctx) { FaacAudioContext *s = avctx->priv_data; @@ -93,9 +86,6 @@ static av_cold int Faac_encode_init(AVCodecContext *avctx) } faac_cfg->outputFormat = 1; faac_cfg->inputFormat = FAAC_INPUT_16BIT; - if (avctx->channels > 2) - memcpy(faac_cfg->channel_map, channel_maps[avctx->channels-3], - avctx->channels * sizeof(int)); avctx->frame_size = samples_input / avctx->channels; |