avfilter/vf_curves: Change enums to int, which are accessed via AVOption as int
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Mar 2015 19:59:51 +0000 (20:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 8 Mar 2015 20:10:31 +0000 (21:10 +0100)
This fixes depending on implementation defined behavior

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

index b17c391..29b469f 100644 (file)
@@ -60,7 +60,7 @@ enum preset {
 
 typedef struct {
     const AVClass *class;
-    enum preset preset;
+    int preset;
     char *comp_points_str[NB_COMP + 1];
     char *comp_points_str_all;
     uint8_t graph[NB_COMP + 1][256];