request mp3 frame_size to be set in has_codec_parameters, fix issue #1314
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 19 Oct 2009 18:53:32 +0000 (18:53 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Mon, 19 Oct 2009 18:53:32 +0000 (18:53 +0000)
Originally committed as revision 20318 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index a071070..58b3584 100644 (file)
@@ -1884,6 +1884,7 @@ static int has_codec_parameters(AVCodecContext *enc)
         if(!enc->frame_size &&
            (enc->codec_id == CODEC_ID_VORBIS ||
             enc->codec_id == CODEC_ID_AAC ||
         if(!enc->frame_size &&
            (enc->codec_id == CODEC_ID_VORBIS ||
             enc->codec_id == CODEC_ID_AAC ||
+            enc->codec_id == CODEC_ID_MP3 ||
             enc->codec_id == CODEC_ID_SPEEX))
             return 0;
         break;
             enc->codec_id == CODEC_ID_SPEEX))
             return 0;
         break;