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;
|
LUT3DContext *lut3d = ctx->priv;
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
|
||||||
|
|
||||||
|
av_assert0(desc);
|
||||||
|
|
||||||
lut3d->clut_is16bit = 0;
|
lut3d->clut_is16bit = 0;
|
||||||
switch (inlink->format) {
|
switch (inlink->format) {
|
||||||
case AV_PIX_FMT_RGB48:
|
case AV_PIX_FMT_RGB48:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user