[FFmpeg-cvslog] avfilter/vf_vignette: Change enum to int, which is accessed via AVOption as int
Michael Niedermayer
git at videolan.org
Mon Mar 30 22:26:49 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 30 21:58:42 2015 +0200| [1019a1cb0ac29fe6a84113d3a6f8c5c30a70fffa] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1019a1cb0ac29fe6a84113d3a6f8c5c30a70fffa
---
libavfilter/vf_vignette.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_vignette.c b/libavfilter/vf_vignette.c
index 806bd72..5f4c5fa 100644
--- a/libavfilter/vf_vignette.c
+++ b/libavfilter/vf_vignette.c
@@ -51,11 +51,17 @@ enum var_name {
VAR_NB
};
+enum EvalMode {
+ EVAL_MODE_INIT,
+ EVAL_MODE_FRAME,
+ EVAL_MODE_NB
+};
+
typedef struct {
const AVClass *class;
const AVPixFmtDescriptor *desc;
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
DEF_EXPR_FIELDS(angle);
DEF_EXPR_FIELDS(x0);
More information about the ffmpeg-cvslog
mailing list