1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +02:00

Make sure mp1/mp2 get their frame_size set.

Fixes issue1696

Originally committed as revision 21972 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-02-22 22:05:20 +00:00
parent 6f5a3d0a7b
commit b7884740fa

View File

@ -1914,6 +1914,8 @@ static int has_codec_parameters(AVCodecContext *enc)
if(!enc->frame_size && if(!enc->frame_size &&
(enc->codec_id == CODEC_ID_VORBIS || (enc->codec_id == CODEC_ID_VORBIS ||
enc->codec_id == CODEC_ID_AAC || enc->codec_id == CODEC_ID_AAC ||
enc->codec_id == CODEC_ID_MP1 ||
enc->codec_id == CODEC_ID_MP2 ||
enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_MP3 ||
enc->codec_id == CODEC_ID_SPEEX)) enc->codec_id == CODEC_ID_SPEEX))
return 0; return 0;