You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/metasound: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -170,9 +170,10 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
|
|||||||
int channels = tctx->avctx->channels;
|
int channels = tctx->avctx->channels;
|
||||||
int sub;
|
int sub;
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
int i, j, k;
|
int i, j, k, ret;
|
||||||
|
|
||||||
init_get_bits(&gb, buf, buf_size * 8);
|
if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
for (tctx->cur_frame = 0; tctx->cur_frame < tctx->frames_per_packet;
|
for (tctx->cur_frame = 0; tctx->cur_frame < tctx->frames_per_packet;
|
||||||
tctx->cur_frame++) {
|
tctx->cur_frame++) {
|
||||||
|
Reference in New Issue
Block a user