Originally committed as revision 7705 to svn://svn.ffmpeg.org/ffmpeg/trunk
Baptiste Coudurier authored on 2007/01/25 18:46:59... | ... |
@@ -2954,13 +2954,7 @@ static void new_audio_stream(AVFormatContext *oc) |
2954 | 2954 |
audio_enc->global_quality = st->quality = FF_QP2LAMBDA * audio_qscale; |
2955 | 2955 |
} |
2956 | 2956 |
audio_enc->thread_count = thread_count; |
2957 |
- /* For audio codecs other than AC3 or DTS we limit */ |
|
2958 |
- /* the number of coded channels to stereo */ |
|
2959 |
- if (audio_channels > 2 && codec_id != CODEC_ID_AC3 |
|
2960 |
- && codec_id != CODEC_ID_DTS) { |
|
2961 |
- audio_enc->channels = 2; |
|
2962 |
- } else |
|
2963 |
- audio_enc->channels = audio_channels; |
|
2957 |
+ audio_enc->channels = audio_channels; |
|
2964 | 2958 |
} |
2965 | 2959 |
audio_enc->sample_rate = audio_sample_rate; |
2966 | 2960 |
audio_enc->time_base= (AVRational){1, audio_sample_rate}; |