mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
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:
parent
a056636c81
commit
8978052869
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user