mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-18 15:25:05 +02:00
avcodec/vp3: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
dffc16d523
commit
2ff7e81b3c
@ -1998,7 +1998,8 @@ static int vp3_decode_frame(AVCodecContext *avctx,
|
|||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
|
||||||
init_get_bits(&gb, buf, buf_size * 8);
|
if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
#if CONFIG_THEORA_DECODER
|
#if CONFIG_THEORA_DECODER
|
||||||
if (s->theora && get_bits1(&gb)) {
|
if (s->theora && get_bits1(&gb)) {
|
||||||
@ -2491,7 +2492,7 @@ static av_cold int theora_decode_init(AVCodecContext *avctx)
|
|||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
if (header_len[i] <= 0)
|
if (header_len[i] <= 0)
|
||||||
continue;
|
continue;
|
||||||
init_get_bits(&gb, header_start[i], header_len[i] * 8);
|
init_get_bits8(&gb, header_start[i], header_len[i]);
|
||||||
|
|
||||||
ptype = get_bits(&gb, 8);
|
ptype = get_bits(&gb, 8);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user