Make av_find_stream_info() find the frame_size for vorbis.

Originally committed as revision 13972 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-06-25 18:36:41 +00:00
parent da95f225fd
commit 4d35bf74f9
1 changed files with 2 additions and 0 deletions

View File

@ -1729,6 +1729,8 @@ static int has_codec_parameters(AVCodecContext *enc)
switch(enc->codec_type) {
case CODEC_TYPE_AUDIO:
val = enc->sample_rate && enc->channels;
if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size)
return 0;
break;
case CODEC_TYPE_VIDEO:
val = enc->width && enc->pix_fmt != PIX_FMT_NONE;