Browse Source

avcodec/metasound: use init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.3
Paul B Mahol 9 years ago
parent
commit
2b707018bc
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavcodec/metasound.c

+ 3
- 2
libavcodec/metasound.c View File

@@ -170,9 +170,10 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
int channels = tctx->avctx->channels;
int sub;
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;
tctx->cur_frame++) {


Loading…
Cancel
Save