changeset 10124:691a0e5585a0 libavcodec

libspeex: Do not set AVCodecContext.frame_size in decoder init if there is no header in extradata since the default value will be incorrect for multiple frames per packet.
author jbr
date Fri, 04 Sep 2009 00:57:20 +0000
parents e1bd75a1eab2
children 67b0747c4192
files libspeexdec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libspeexdec.c	Wed Sep 02 18:03:13 2009 +0000
+++ b/libspeexdec.c	Fri Sep 04 00:57:20 2009 +0000
@@ -78,8 +78,7 @@
     }
 
     if (!s->header) {
-        speex_decoder_ctl(s->dec_state, SPEEX_GET_FRAME_SIZE, &avctx->frame_size);
-        s->frame_size = avctx->frame_size;
+        speex_decoder_ctl(s->dec_state, SPEEX_GET_FRAME_SIZE, &s->frame_size);
     }
 
     if (avctx->channels == 2) {