diff libspeexdec.c @ 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 6cade2cdd63b
children 8a4984c5cacc
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) {