]> git.sesse.net Git - ffmpeg/commitdiff
libspeex: Do not set AVCodecContext.frame_size in decoder init if there is no
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 4 Sep 2009 00:57:20 +0000 (00:57 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 4 Sep 2009 00:57:20 +0000 (00:57 +0000)
header in extradata since the default value will be incorrect for multiple
frames per packet.

Originally committed as revision 19755 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/libspeexdec.c

index 88bf85f209892a7b4116db8d0963ff14a951b331..153e395eb0c62453f28cd307f45bd21b504fe966 100644 (file)
@@ -78,8 +78,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
     }
 
     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) {