Signed-off-by: Paul B Mahol <onemda@gmail.com>
return AVERROR(ENOMEM);
c->bdsp.bswap_buf((uint32_t *) c->bits, (const uint32_t *) buf,
buf_size >> 2);
return AVERROR(ENOMEM);
c->bdsp.bswap_buf((uint32_t *) c->bits, (const uint32_t *) buf,
buf_size >> 2);
- init_get_bits(&gb, c->bits, buf_size * 8);
+ if ((ret = init_get_bits8(&gb, c->bits, buf_size)) < 0)
+ return ret;
skip_bits_long(&gb, skip);
/* read subband indexes */
skip_bits_long(&gb, skip);
/* read subband indexes */