mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avcodec/apedec: use init_get_bits8()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
2508fa10c6
commit
49c6f0ae15
@ -1456,7 +1456,8 @@ static int ape_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
}
|
}
|
||||||
s->ptr += offset;
|
s->ptr += offset;
|
||||||
} else {
|
} else {
|
||||||
init_get_bits(&s->gb, s->ptr, (s->data_end - s->ptr) * 8);
|
if ((ret = init_get_bits8(&s->gb, s->ptr, s->data_end - s->ptr)) < 0)
|
||||||
|
return ret;
|
||||||
if (s->fileversion > 3800)
|
if (s->fileversion > 3800)
|
||||||
skip_bits_long(&s->gb, offset * 8);
|
skip_bits_long(&s->gb, offset * 8);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user