Commit f52dd8a5 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/g723_1dec: use init_get_bits8()

parent 3601eb04
...@@ -78,8 +78,11 @@ static int unpack_bitstream(G723_1_ChannelContext *p, const uint8_t *buf, ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment