diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index 66346d0d18..0e6bb01718 100644 --- a/libavcodec/lagarith.c +++ b/libavcodec/lagarith.c @@ -444,7 +444,7 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst, offset += 4; } - init_get_bits(&gb, src + offset, (src_size - offset) * 8); + init_get_bits8(&gb, src + offset, src_size - offset); if (lag_read_prob_header(&rac, &gb) < 0) return -1;