/* Completes frame/field rendering by passing any remaining blocks. Normally ff_draw_horiz_band() is called for each slice, however, some leftover blocks, for example from error_resilience(), may remain. It should be safe to call the function a few times for the same field.  */
void ff_xvmc_field_end(MpegEncContext *s)
/* Completes frame/field rendering by passing any remaining blocks. Normally ff_draw_horiz_band() is called for each slice, however, some leftover blocks, for example from error_resilience(), may remain. It should be safe to call the function a few times for the same field.  */
void ff_xvmc_field_end(MpegEncContext *s)
{
    struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.data[2];
    assert(render);
    if (render->filled_mv_blocks_num > 0)
        ff_draw_horiz_band(s, 0, 0);
}