提交 e483606d 编写于 作者: P Paul B Mahol

avcodec/g722dec: use init_get_bits8()

上级 f89919d4
......@@ -100,7 +100,9 @@ static int g722_decode_frame(AVCodecContext *avctx, void *data,
return ret;
out_buf = (int16_t *)frame->data[0];
init_get_bits(&gb, avpkt->data, avpkt->size * 8);
ret = init_get_bits8(&gb, avpkt->data, avpkt->size);
if (ret < 0)
return ret;
for (j = 0; j < avpkt->size; j++) {
int ilow, ihigh, rlow, rhigh, dhigh;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册