See CID1108596 and CID1108595
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
for (y = 0; y < h4; y++)
for (x = 0; x < w4; x++)
pred = FFMIN(pred, s->segmentation_map[(y + row) * 8 * s->sb_cols + x + col]);
+ av_assert1(pred < 8);
b->seg_id = pred;
memset(&s->above_segpred_ctx[col], 1, w4);
for (i = 0; i < 10; i++)
if (!s->fb[i]->data[0])
break;
+ av_assert0(i < 10);
s->f = s->fb[i];
if ((res = ff_get_buffer(ctx, s->f,
s->refreshrefmask ? AV_GET_BUFFER_FLAG_REF : 0)) < 0)