diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-07-14 01:32:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-07-14 01:32:14 +0000 |
commit | 23c992532927afa9d3a00677ff40cd071e21dc8f (patch) | |
tree | 232b97558b925172d4c6372c10a5c7e156469f27 /ffmpeg.c | |
parent | eb507b21c410515b179c0ca85b3db3d83fc296bd (diff) | |
download | ffmpeg-23c992532927afa9d3a00677ff40cd071e21dc8f.tar.gz |
libdts support by (Benjamin Zores <ben at geexbox dot org>)
Originally committed as revision 3310 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1502,8 +1502,9 @@ static int av_encode(AVFormatContext **output_files, ost->audio_resample = 0; } else { if (codec->channels != icodec->channels && - icodec->codec_id == CODEC_ID_AC3) { - /* Special case for 5:1 AC3 input */ + (icodec->codec_id == CODEC_ID_AC3 || + icodec->codec_id == CODEC_ID_DTS)) { + /* Special case for 5:1 AC3 and DTS input */ /* and mono or stereo output */ /* Request specific number of channels */ icodec->channels = codec->channels; @@ -3144,9 +3145,10 @@ static void opt_output_file(const char *filename) audio_enc->bit_rate = audio_bit_rate; audio_enc->strict_std_compliance = strict; audio_enc->thread_count = thread_count; - /* For audio codecs other than AC3 we limit */ + /* 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) { + if (audio_channels > 2 && codec_id != CODEC_ID_AC3 + && codec_id != CODEC_ID_DTS) { audio_enc->channels = 2; } else audio_enc->channels = audio_channels; |