[FFmpeg-devel] [PATCH 1/1] vf_drawtext.c: remove duplicate av_expr_eval() line

Nicolas Noirbent nicolas.noirbent at smartjog.com
Wed Feb 1 18:21:42 CET 2012


---
 libavfilter/vf_drawtext.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index d0d854b..0d88e68 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -819,7 +819,6 @@ static int draw_text(AVFilterContext *ctx, AVFilterBufferRef *picref,
 
     dtext->x = dtext->var_values[VAR_X] = av_expr_eval(dtext->x_pexpr, dtext->var_values, &dtext->prng);
     dtext->y = dtext->var_values[VAR_Y] = av_expr_eval(dtext->y_pexpr, dtext->var_values, &dtext->prng);
-    dtext->x = dtext->var_values[VAR_X] = av_expr_eval(dtext->x_pexpr, dtext->var_values, &dtext->prng);
     dtext->draw = av_expr_eval(dtext->d_pexpr, dtext->var_values, &dtext->prng);
 
     if(!dtext->draw)
-- 
1.7.9



More information about the ffmpeg-devel mailing list