avfilter/vf_field: Change enum to int, which is accessed via AVOption as int
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Mar 2015 15:52:10 +0000 (16:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 17 Mar 2015 15:52:10 +0000 (16:52 +0100)
This fixes depending on implementation defined behavior

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

index ed12379..72cabdb 100644 (file)
@@ -33,7 +33,7 @@ enum FieldType { FIELD_TYPE_TOP = 0, FIELD_TYPE_BOTTOM };
 
 typedef struct {
     const AVClass *class;
-    enum FieldType type;
+    int type;                   ///< FieldType
     int nb_planes;              ///< number of planes of the current format
 } FieldContext;