avfilter/vf_histogram: Change enum to int, which is accessed via AVOption as int
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Mar 2015 11:23:39 +0000 (12:23 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 18 Mar 2015 11:32:56 +0000 (12:32 +0100)
This fixes depending on implementation defined behavior

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_histogram.c

index 34656b5..40ec400 100644 (file)
@@ -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;