diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-20 19:11:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-20 19:11:58 +0100 |
commit | 1a79850a8fa9d441b9ba5a0d039c662ee18121ca (patch) | |
tree | c401b995d3568d4231fd647717c67005322c8950 /libavfilter | |
parent | 59c06902e838beb26d12fbd4330150d0b0edbf15 (diff) | |
download | ffmpeg-streaming-1a79850a8fa9d441b9ba5a0d039c662ee18121ca.zip ffmpeg-streaming-1a79850a8fa9d441b9ba5a0d039c662ee18121ca.tar.gz |
avfilter/vf_overlay: Change enums to int, which are accessed via AVOption as int
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_overlay.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 80d99bd..788c1d9 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -92,6 +92,20 @@ static const char * const eof_action_str[] = { #define U 1 #define V 2 +enum EvalMode { + EVAL_MODE_INIT, + EVAL_MODE_FRAME, + EVAL_MODE_NB +}; + +enum OverlayFormat { + OVERLAY_FORMAT_YUV420, + OVERLAY_FORMAT_YUV422, + OVERLAY_FORMAT_YUV444, + OVERLAY_FORMAT_RGB, + OVERLAY_FORMAT_NB +}; + typedef struct OverlayContext { const AVClass *class; int x, y; ///< position of overlayed picture @@ -103,8 +117,8 @@ typedef struct OverlayContext { uint8_t overlay_is_packed_rgb; uint8_t overlay_rgba_map[4]; uint8_t overlay_has_alpha; - enum OverlayFormat { OVERLAY_FORMAT_YUV420, OVERLAY_FORMAT_YUV422, OVERLAY_FORMAT_YUV444, OVERLAY_FORMAT_RGB, OVERLAY_FORMAT_NB} format; - enum EvalMode { EVAL_MODE_INIT, EVAL_MODE_FRAME, EVAL_MODE_NB } eval_mode; + int format; ///< OverlayFormat + int eval_mode; ///< EvalMode FFDualInputContext dinput; @@ -115,7 +129,7 @@ typedef struct OverlayContext { double var_values[VAR_VARS_NB]; char *x_expr, *y_expr; - enum EOFAction eof_action; ///< action to take on EOF from source + int eof_action; ///< action to take on EOF from source AVExpr *x_pexpr, *y_pexpr; } OverlayContext; |