[Ffmpeg-cvslog] r7705 - trunk/ffmpeg.c

bcoudurier subversion
Thu Jan 25 10:46:59 CET 2007


Author: bcoudurier
Date: Thu Jan 25 10:46:59 2007
New Revision: 7705

Modified:
   trunk/ffmpeg.c

Log:
do not force output audio channels

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Thu Jan 25 10:46:59 2007
@@ -2954,13 +2954,7 @@
             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};




More information about the ffmpeg-cvslog mailing list