mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
avcodec/qcelpdec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6e7ac5ee55
commit
e9eb94ac5a
@ -719,7 +719,8 @@ static int qcelp_decode_frame(AVCodecContext *avctx, void *data,
|
||||
qcelp_unpacking_bitmaps_lengths[q->bitrate];
|
||||
uint8_t *unpacked_data = (uint8_t *)&q->frame;
|
||||
|
||||
init_get_bits(&q->gb, buf, 8 * buf_size);
|
||||
if ((ret = init_get_bits8(&q->gb, buf, buf_size)) < 0)
|
||||
return ret;
|
||||
|
||||
memset(&q->frame, 0, sizeof(QCELPFrame));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user