aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_overlay.c
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2018-02-01 10:55:19 +0800
committerSteven Liu <lq@chinaffmpeg.org>2018-02-01 10:55:19 +0800
commit27fe8930e0b9e7881e61eb9ed0b8b526f718abfe (patch)
tree40f884591847595ed9c08d4536b7ff0077f32962 /libavfilter/vf_overlay.c
parent61a4ee8ab482925cb419133cab42e4c4ef6a3f07 (diff)
downloadffmpeg-27fe8930e0b9e7881e61eb9ed0b8b526f718abfe.tar.gz
avfilter: add comments for duplicate line
comment about the looks like a duplicate line. but that is used to reason x is expressed from y Suggested-by: Paul B Mahol Suggested-by: Michael Niedermayer Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavfilter/vf_overlay.c')
-rw-r--r--libavfilter/vf_overlay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index aa5835ae3a..c6a6ac82f3 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -149,6 +149,7 @@ 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);
+ /* It is necessary if x is expressed from y */
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);