[FFmpeg-cvslog] r19755 - trunk/libavcodec/libspeexdec.c

jbr subversion
Fri Sep 4 02:57:20 CEST 2009


Author: jbr
Date: Fri Sep  4 02:57:20 2009
New Revision: 19755

Log:
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.

Modified:
   trunk/libavcodec/libspeexdec.c

Modified: trunk/libavcodec/libspeexdec.c
==============================================================================
--- trunk/libavcodec/libspeexdec.c	Thu Sep  3 00:53:31 2009	(r19754)
+++ trunk/libavcodec/libspeexdec.c	Fri Sep  4 02:57:20 2009	(r19755)
@@ -78,8 +78,7 @@ static av_cold int libspeex_decode_init(
     }
 
     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) {



More information about the ffmpeg-cvslog mailing list