Mercurial > libavformat.hg
changeset 3503:c1c3fb1711b9 libavformat
Make av_find_stream_info() find the frame_size for vorbis.
author | michael |
---|---|
date | Wed, 25 Jun 2008 18:36:41 +0000 |
parents | 322e2fb56ce8 |
children | 2bbc4f176591 |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Wed Jun 25 18:31:48 2008 +0000 +++ b/utils.c Wed Jun 25 18:36:41 2008 +0000 @@ -1729,6 +1729,8 @@ 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;