From ee7b5d4ef84d1bdc557483a89d5be8c06bfa9a7f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 8 Mar 2015 20:59:51 +0100 Subject: [PATCH] avfilter/vf_drawtext: Change enums to int, which are accessed via AVOption as int This fixes depending on implementation defined behavior --- libavfilter/vf_drawtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index d20f8055c4..cf24d960db 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -136,7 +136,7 @@ enum expansion_mode { typedef struct DrawTextContext { const AVClass *class; - enum expansion_mode exp_mode; ///< expansion mode to use for the text + int exp_mode; ///< expansion mode to use for the text int reinit; ///< tells if the filter is being reinited #if CONFIG_LIBFONTCONFIG uint8_t *font; ///< font to be used