[FFmpeg-devel] [PATCH] avfilter/vf_overlay: remove duplicate parse line

Steven Liu lq at chinaffmpeg.org
Mon Jan 8 10:16:37 EET 2018


duplicate av_expr_eval x_pexpr, remove the second one.

Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavfilter/vf_overlay.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index aa5835ae3a..240f6f3803 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -149,7 +149,6 @@ static void eval_expr(AVFilterContext *ctx)
 
     s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, NULL);
     s->var_values[VAR_Y] = av_expr_eval(s->y_pexpr, s->var_values, NULL);
-    s->var_values[VAR_X] = av_expr_eval(s->x_pexpr, s->var_values, NULL);
     s->x = normalize_xy(s->var_values[VAR_X], s->hsub);
     s->y = normalize_xy(s->var_values[VAR_Y], s->vsub);
 }
-- 
2.14.3 (Apple Git-98)





More information about the ffmpeg-devel mailing list