From 67e1562228599018abf32f6376ffbb26b3bba649 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 18 Mar 2015 12:23:39 +0100 Subject: [PATCH] avfilter/vf_histogram: Change enum to int, which is accessed via AVOption as int This fixes depending on implementation defined behavior Signed-off-by: Michael Niedermayer --- libavfilter/vf_histogram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_histogram.c b/libavfilter/vf_histogram.c index 34656b5d23..40ec40096f 100644 --- a/libavfilter/vf_histogram.c +++ b/libavfilter/vf_histogram.c @@ -37,7 +37,7 @@ enum HistogramMode { typedef struct HistogramContext { const AVClass *class; ///< AVClass context for log and options purpose - enum HistogramMode mode; + int mode; ///< HistogramMode unsigned histogram[256]; int ncomp; const uint8_t *bg_color;