Mercurial > libavformat.hg
changeset 3504:2bbc4f176591 libavformat
make av_find_stream_info find frame_size for aac too
author | bcoudurier |
---|---|
date | Wed, 25 Jun 2008 19:30:48 +0000 |
parents | c1c3fb1711b9 |
children | ad7e9ad3c19a |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Wed Jun 25 18:36:41 2008 +0000 +++ b/utils.c Wed Jun 25 19:30:48 2008 +0000 @@ -1729,7 +1729,9 @@ switch(enc->codec_type) { case CODEC_TYPE_AUDIO: val = enc->sample_rate && enc->channels; - if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size) + if(!enc->frame_size && + (enc->codec_id == CODEC_ID_VORBIS || + enc->codec_id == CODEC_ID_AAC)) return 0; break; case CODEC_TYPE_VIDEO: