Commit 920f4f8f authored by bcoudurier's avatar bcoudurier

do not force output audio channels

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7705 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 95f68d7a
...@@ -2954,13 +2954,7 @@ static void new_audio_stream(AVFormatContext *oc) ...@@ -2954,13 +2954,7 @@ static void new_audio_stream(AVFormatContext *oc)
audio_enc->global_quality = st->quality = FF_QP2LAMBDA * audio_qscale; audio_enc->global_quality = st->quality = FF_QP2LAMBDA * audio_qscale;
} }
audio_enc->thread_count = thread_count; audio_enc->thread_count = thread_count;
/* For audio codecs other than AC3 or DTS we limit */ audio_enc->channels = audio_channels;
/* 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->sample_rate = audio_sample_rate; audio_enc->sample_rate = audio_sample_rate;
audio_enc->time_base= (AVRational){1, audio_sample_rate}; audio_enc->time_base= (AVRational){1, audio_sample_rate};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment