- sizes[i] = encode_alpha_plane(ctx, pb, mbs_per_slice,
- ctx->blocks[0], quant);
- }
- total_size += sizes[i];
- if (put_bits_left(pb) < 0) {
- av_log(avctx, AV_LOG_ERROR,
- "Underestimated required buffer size.\n");
- return AVERROR_BUG;
+ encode_alpha_plane(ctx, pb, mbs_per_slice, ctx->blocks[0], quant);