comparison utils.c @ 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 0c989007b4f0
comparison
equal deleted inserted replaced
3503:c1c3fb1711b9 3504:2bbc4f176591
1727 { 1727 {
1728 int val; 1728 int val;
1729 switch(enc->codec_type) { 1729 switch(enc->codec_type) {
1730 case CODEC_TYPE_AUDIO: 1730 case CODEC_TYPE_AUDIO:
1731 val = enc->sample_rate && enc->channels; 1731 val = enc->sample_rate && enc->channels;
1732 if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size) 1732 if(!enc->frame_size &&
1733 (enc->codec_id == CODEC_ID_VORBIS ||
1734 enc->codec_id == CODEC_ID_AAC))
1733 return 0; 1735 return 0;
1734 break; 1736 break;
1735 case CODEC_TYPE_VIDEO: 1737 case CODEC_TYPE_VIDEO:
1736 val = enc->width && enc->pix_fmt != PIX_FMT_NONE; 1738 val = enc->width && enc->pix_fmt != PIX_FMT_NONE;
1737 break; 1739 break;