1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/g722dec: use init_get_bits8()

This commit is contained in:
Paul B Mahol 2018-12-23 21:01:17 +01:00
parent f89919d4fb
commit e483606d44

View File

@ -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;