diff options
author | Clément Bœsch <u@pkh.me> | 2015-06-13 20:49:42 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2015-06-13 20:51:43 +0200 |
commit | 897805286913feac6bac6aba6fbfca7d1d4e5824 (patch) | |
tree | 3a872b77039e2e9479078bcf50fe0f480206b05e /libavfilter/vf_lut3d.c | |
parent | a056636c8131d2e6ca6a8f3b196287af682b16a4 (diff) | |
download | ffmpeg-897805286913feac6bac6aba6fbfca7d1d4e5824.tar.gz |
avfilter/lut3d: assert on pixel format descriptor
inlink->format is supposed to be set to a valid format controlled by query_formats().
Diffstat (limited to 'libavfilter/vf_lut3d.c')
-rw-r--r-- | libavfilter/vf_lut3d.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |