mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-05 03:26:17 +00:00
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. Originally committed as revision 19755 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e69bb386a2
commit
d6ee035d7a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user