avfilter/vf_drawtext: 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

libavfilter/vf_drawtext.c

index d20f805..cf24d96 100644 (file)
@@ -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