summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-25 09:46:59 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-25 09:46:59 +0000
commite3e3be53463c154d108d7832b8a013b96ae8f0b9 (patch)
tree94c3e8101454978553666522f61722c1040b986b /ffmpeg.c
parent6884c36c42e88cd901124c54510602c148e1e26a (diff)
do not force output audio channels
Originally committed as revision 7705 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 20729e5c09..be93da9e46 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2954,13 +2954,7 @@ static void new_audio_stream(AVFormatContext *oc)
audio_enc->global_quality = st->quality = FF_QP2LAMBDA * audio_qscale;
}
audio_enc->thread_count = thread_count;
- /* For audio codecs other than AC3 or DTS we limit */
- /* the number of coded channels to stereo */
- if (audio_channels > 2 && codec_id != CODEC_ID_AC3
- && codec_id != CODEC_ID_DTS) {
- audio_enc->channels = 2;
- } else
- audio_enc->channels = audio_channels;
+ audio_enc->channels = audio_channels;
}
audio_enc->sample_rate = audio_sample_rate;
audio_enc->time_base= (AVRational){1, audio_sample_rate};