mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
make av_find_stream_info find frame_size for aac too
Originally committed as revision 13976 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
80b616fca3
commit
f3b5a1a260
@ -1729,7 +1729,9 @@ 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)
|
||||
if(!enc->frame_size &&
|
||||
(enc->codec_id == CODEC_ID_VORBIS ||
|
||||
enc->codec_id == CODEC_ID_AAC))
|
||||
return 0;
|
||||
break;
|
||||
case CODEC_TYPE_VIDEO:
|
||||
|
Loading…
Reference in New Issue
Block a user