From e6140e7822703f0cb5f744ee77a71580a650db7b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 17 Mar 2015 16:52:10 +0100 Subject: [PATCH] avfilter/vf_field: 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_field.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_field.c b/libavfilter/vf_field.c index ed123792b4..72cabdb929 100644 --- a/libavfilter/vf_field.c +++ b/libavfilter/vf_field.c @@ -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;