[FFmpeg-cvslog] r13619 - trunk/libavformat/utils.c

andoma subversion
Mon Jun 2 11:15:04 CEST 2008


Author: andoma
Date: Mon Jun  2 11:15:04 2008
New Revision: 13619

Log:
Audio channels and sample rate must be set in order to skip
additional probing of a stream.



Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Mon Jun  2 11:15:04 2008
@@ -1694,7 +1694,7 @@ static int has_codec_parameters(AVCodecC
     int val;
     switch(enc->codec_type) {
     case CODEC_TYPE_AUDIO:
-        val = enc->sample_rate;
+        val = enc->sample_rate && enc->channels;
         break;
     case CODEC_TYPE_VIDEO:
         val = enc->width && enc->pix_fmt != PIX_FMT_NONE;




More information about the ffmpeg-cvslog mailing list