[FFmpeg-cvslog] lavfi/drawtext: fix reinit command

Andrey Utkin git at videolan.org
Sun Feb 2 16:22:14 CET 2014


ffmpeg | branch: master | Andrey Utkin <andrey.krieger.utkin at gmail.com> | Sat Feb  1 15:47:25 2014 +0200| [6d7119dbd26a6794c2719c662f8805052b1a32f1] | committer: Stefano Sabatini

lavfi/drawtext: fix reinit command

Problem was that reinit argument wasn't used.
Regression came in at commit fd6228e65711e63a9e35e9a1087d7ce62040e6e3

Signed-off-by: Stefano Sabatini <stefasab at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d7119dbd26a6794c2719c662f8805052b1a32f1
---

 libavfilter/vf_drawtext.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index f185c58..c384394 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -640,6 +640,8 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char
         int ret;
         uninit(ctx);
         s->reinit = 1;
+        if ((ret = av_set_options_string(ctx, arg, "=", ":")) < 0)
+            return ret;
         if ((ret = init(ctx)) < 0)
             return ret;
         return config_input(ctx->inputs[0]);



More information about the ffmpeg-cvslog mailing list