1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avcodec/g723_1dec: use init_get_bits8()

This commit is contained in:
Paul B Mahol
2018-12-23 15:40:47 +01:00
parent 3601eb0474
commit f52dd8a55a

View File

@@ -78,8 +78,11 @@ static int unpack_bitstream(G723_1_ChannelContext *p, const uint8_t *buf,
GetBitContext gb; GetBitContext gb;
int ad_cb_len; int ad_cb_len;
int temp, info_bits, i; int temp, info_bits, i;
int ret;
init_get_bits(&gb, buf, buf_size * 8); ret = init_get_bits8(&gb, buf, buf_size);
if (ret < 0)
return ret;
/* Extract frame type and rate info */ /* Extract frame type and rate info */
info_bits = get_bits(&gb, 2); info_bits = get_bits(&gb, 2);