提交 6ec037c5 编写于 作者: M Michael Niedermayer

sonicdec: fix frame size

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 1426291e
......@@ -880,7 +880,7 @@ static int sonic_decode_frame(AVCodecContext *avctx,
if (buf_size == 0) return 0;
s->frame.nb_samples = s->frame_size;
s->frame.nb_samples = s->frame_size / avctx->channels;
if ((ret = ff_get_buffer(avctx, &s->frame, 0)) < 0)
return ret;
samples = (int16_t *)s->frame.data[0];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册