diff 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
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: