Unified · Split
| @@ -231,7 +231,8 @@ static int mpc7_decode_frame(AVCodecContext * avctx, void *data, · 230 unmodified lines | |||
| 231 | return AVERROR(ENOMEM); | 231 | return AVERROR(ENOMEM); |
| 232 | c->bdsp.bswap_buf((uint32_t *) c->bits, (const uint32_t *) buf, | 232 | c->bdsp.bswap_buf((uint32_t *) c->bits, (const uint32_t *) buf, |
| 233 | buf_size >> 2); | 233 | buf_size >> 2); |
| 234 | init_get_bits(&gb, c->bits, buf_size * 8); | 234 | if ((ret = init_get_bits8(&gb, c->bits, buf_size)) < 0) |
| 235 | return ret; | ||
| 235 | skip_bits_long(&gb, skip); | 236 | skip_bits_long(&gb, skip); |
| 236 | 237 | ||
| 237 | /* read subband indexes */ | 238 | /* read subband indexes */ |