mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/ac3dec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
e9eb94ac5a
commit
c93a7b264f
@ -1429,7 +1429,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
|
||||
memcpy(s->input_buffer, buf, FFMIN(buf_size, AC3_FRAME_BUFFER_SIZE));
|
||||
buf = s->input_buffer;
|
||||
/* initialize the GetBitContext with the start of valid AC-3 Frame */
|
||||
init_get_bits(&s->gbc, buf, buf_size * 8);
|
||||
if ((ret = init_get_bits8(&s->gbc, buf, buf_size)) < 0)
|
||||
return ret;
|
||||
|
||||
/* parse the syncinfo */
|
||||
err = parse_frame_header(s);
|
||||
|
Loading…
Reference in New Issue
Block a user