static void end_frame(AVFilterLink *inlink)
{
    SelectContext *select = inlink->dst->priv;

    if (select->select) {
        if (select->cache_frames)
            return;
        ff_end_frame(inlink->dst->outputs[0]);
    }
}