[FFmpeg-devel] [PATCH] vf_drawtext: fix reinit command

Stefano Sabatini stefasab at gmail.com
Sun Feb 2 16:22:42 CET 2014


On date Saturday 2014-02-01 15:47:25 +0200, Andrey Utkin encoded:
> Problem was that reinit argument wasn't used.
> Regression came in at commit fd6228e65711e63a9e35e9a1087d7ce62040e6e3
> ---
>  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]);
> -- 
> 1.7.12.4

Applied, thanks.
-- 
FFmpeg = Free and Fabulous Mean Purposeless Enlightened Game


More information about the ffmpeg-devel mailing list