Commit 61668d66 authored by jbr's avatar jbr

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19755 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6691ecc2
...@@ -78,8 +78,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx) ...@@ -78,8 +78,7 @@ static av_cold int libspeex_decode_init(AVCodecContext *avctx)
} }
if (!s->header) { if (!s->header) {
speex_decoder_ctl(s->dec_state, SPEEX_GET_FRAME_SIZE, &avctx->frame_size); speex_decoder_ctl(s->dec_state, SPEEX_GET_FRAME_SIZE, &s->frame_size);
s->frame_size = avctx->frame_size;
} }
if (avctx->channels == 2) { if (avctx->channels == 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment