diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 18:36:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 18:36:41 +0000 |
commit | 4d35bf74f92683b2e513dd821a074b29d26b9862 (patch) | |
tree | 677e587e5acda742cbe93e8f44dc86fec272d461 /libavformat | |
parent | da95f225fd4c029da75bf8aeb93094bfc9a95ba7 (diff) | |
download | ffmpeg-4d35bf74f92683b2e513dd821a074b29d26b9862.tar.gz |
Make av_find_stream_info() find the frame_size for vorbis.
Originally committed as revision 13972 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 055ff320d2..f098d051b4 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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; |