avfilter: fix plane validity checks

Fixes out of array accesses

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static int lut_init(AVFilterContext *ctx)
{
    return 0;
}

static int lut_init(AVFilterContext *ctx)
{
    return 0;
}
