[FFmpeg-cvslog] avfilter/lut3d: assert on pixel format descriptor

Clément Bœsch git at videolan.org
Sat Jun 13 20:52:07 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jun 13 20:49:42 2015 +0200| [897805286913feac6bac6aba6fbfca7d1d4e5824] | committer: Clément Bœsch

avfilter/lut3d: assert on pixel format descriptor

inlink->format is supposed to be set to a valid format controlled by query_formats().

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=897805286913feac6bac6aba6fbfca7d1d4e5824
---

 libavfilter/vf_lut3d.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c
index 28a2850..5bdbb79 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:



More information about the ffmpeg-cvslog mailing list