Browse Source

avfilter/lut3d: assert on pixel format descriptor

inlink->format is supposed to be set to a valid format controlled by query_formats().
tags/n2.8
Clément Bœsch 10 years ago
parent
commit
8978052869
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/vf_lut3d.c

+ 2
- 0
libavfilter/vf_lut3d.c 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:


Loading…
Cancel
Save