diff options
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | 2014-07-18 01:00:40 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-18 14:24:34 +0200 |
commit | cb8cb85da791825bfd186c86492f0eb6db540cf7 (patch) | |
tree | eb6145cea4d61bc473936ae77ead5fef324b0878 /libavfilter/vf_drawtext.c | |
parent | 0035783488cc02e88bd6348fd2e9a24338f144be (diff) | |
download | ffmpeg-streaming-cb8cb85da791825bfd186c86492f0eb6db540cf7.zip ffmpeg-streaming-cb8cb85da791825bfd186c86492f0eb6db540cf7.tar.gz |
lavfi/drawtext: add alias "expr_int_format" to expansion function "eif"
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r-- | libavfilter/vf_drawtext.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index c744d93..b7a295f 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -949,7 +949,7 @@ static int func_eval_expr_int_format(AVFilterContext *ctx, AVBPrint *bp, if (argc == 3) { ret = sscanf(argv[2], "%u", &positions); if (ret != 1) { - av_log(ctx, AV_LOG_ERROR, "eif(): Invalid number of positions" + av_log(ctx, AV_LOG_ERROR, "expr_int_format(): Invalid number of positions" " to print: '%s'\n", argv[2]); return AVERROR(EINVAL); } @@ -982,6 +982,7 @@ static const struct drawtext_function { } functions[] = { { "expr", 1, 1, 0, func_eval_expr }, { "e", 1, 1, 0, func_eval_expr }, + { "expr_int_format", 2, 3, 0, func_eval_expr_int_format }, { "eif", 2, 3, 0, func_eval_expr_int_format }, { "pict_type", 0, 0, 0, func_pict_type }, { "pts", 0, 2, 0, func_pts }, |