From 897805286913feac6bac6aba6fbfca7d1d4e5824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Sat, 13 Jun 2015 20:49:42 +0200 Subject: [PATCH] avfilter/lut3d: assert on pixel format descriptor inlink->format is supposed to be set to a valid format controlled by query_formats(). --- libavfilter/vf_lut3d.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index 28a285069f..5bdbb7983b 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -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: