changeset 5154:36b6bb08e0e2 libavformat

Add frame_size as a codec parameter requirement for Speex in av_find_stream_info(). It forces decoding of a packet when there is no Speex header in order to determine the correct frame size.
author jbr
date Fri, 04 Sep 2009 21:38:45 +0000
parents 3fe89226cacf
children e562b793c959
files utils.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sun Aug 30 18:14:22 2009 +0000
+++ b/utils.c	Fri Sep 04 21:38:45 2009 +0000
@@ -1862,7 +1862,8 @@
         val = enc->sample_rate && enc->channels && enc->sample_fmt != SAMPLE_FMT_NONE;
         if(!enc->frame_size &&
            (enc->codec_id == CODEC_ID_VORBIS ||
-            enc->codec_id == CODEC_ID_AAC))
+            enc->codec_id == CODEC_ID_AAC ||
+            enc->codec_id == CODEC_ID_SPEEX))
             return 0;
         break;
     case CODEC_TYPE_VIDEO: