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

bcoudurier subversion
Sat Aug 30 00:13:22 CEST 2008


Author: bcoudurier
Date: Sat Aug 30 00:13:22 2008
New Revision: 15043

Log:
make has_codec_parameters not returning true when sample_fmt is not set

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Sat Aug 30 00:13:22 2008
@@ -1842,7 +1842,7 @@ static int has_codec_parameters(AVCodecC
     int val;
     switch(enc->codec_type) {
     case CODEC_TYPE_AUDIO:
-        val = enc->sample_rate && enc->channels;
+        val = enc->sample_rate && enc->channels && enc->sample_fmt != SAMPLE_FMT_NONE;
         if(!enc->frame_size &&
            (enc->codec_id == CODEC_ID_VORBIS ||
             enc->codec_id == CODEC_ID_AAC))




More information about the ffmpeg-cvslog mailing list