Commit 1019a1cb authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_vignette: Change enum to int, which is accessed via AVOption as int

This fixes depending on implementation defined behavior
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 63167a6b
...@@ -51,11 +51,17 @@ enum var_name { ...@@ -51,11 +51,17 @@ enum var_name {
VAR_NB VAR_NB
}; };
enum EvalMode {
EVAL_MODE_INIT,
EVAL_MODE_FRAME,
EVAL_MODE_NB
};
typedef struct { typedef struct {
const AVClass *class; const AVClass *class;
const AVPixFmtDescriptor *desc; const AVPixFmtDescriptor *desc;
int backward; int backward;
enum EvalMode { EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB } eval_mode; int eval_mode; ///< EvalMode
#define DEF_EXPR_FIELDS(name) AVExpr *name##_pexpr; char *name##_expr; double name #define DEF_EXPR_FIELDS(name) AVExpr *name##_pexpr; char *name##_expr; double name
DEF_EXPR_FIELDS(angle); DEF_EXPR_FIELDS(angle);
DEF_EXPR_FIELDS(x0); DEF_EXPR_FIELDS(x0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment