[FFmpeg-cvslog] avfilter/geq: 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:32 2015 +0200| [a056636c8131d2e6ca6a8f3b196287af682b16a4] | committer: Clément Bœsch
avfilter/geq: 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=a056636c8131d2e6ca6a8f3b196287af682b16a4
---
libavfilter/vf_geq.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavfilter/vf_geq.c b/libavfilter/vf_geq.c
index 887594f..40e71e0 100644
--- a/libavfilter/vf_geq.c
+++ b/libavfilter/vf_geq.c
@@ -26,6 +26,7 @@
* ported by Clément Bœsch for FFmpeg.
*/
+#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/eval.h"
#include "libavutil/opt.h"
@@ -192,6 +193,8 @@ static int geq_config_props(AVFilterLink *inlink)
GEQContext *geq = inlink->dst->priv;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
+ av_assert0(desc);
+
geq->hsub = desc->log2_chroma_w;
geq->vsub = desc->log2_chroma_h;
geq->planes = desc->nb_components;
More information about the ffmpeg-cvslog
mailing list