avfilter/lut3d: assert on pixel format descriptor

inlink->format is supposed to be set to a valid format controlled by query_formats().
This commit is contained in:
Clément Bœsch 2015-06-13 20:49:42 +02:00
parent a056636c81
commit 8978052869

View File

@ -707,6 +707,8 @@ static int config_clut(AVFilterLink *inlink)
LUT3DContext *lut3d = ctx->priv;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
av_assert0(desc);
lut3d->clut_is16bit = 0;
switch (inlink->format) {
case AV_PIX_FMT_RGB48: