[FFmpeg-cvslog] vf_drawtext: do not set limitations on fontsize

Stefano Sabatini git at videolan.org
Fri Sep 23 01:43:20 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Sep 22 00:14:54 2011 +0200| [b87d4c2b9f4106045afeabe1f1338c3eddb66935] | committer: Stefano Sabatini

vf_drawtext: do not set limitations on fontsize

It may be needed to use values greater than 72, and in general greater
than an arbitrary big value. Let the user choose what's too big for
her.

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

 libavfilter/avfilter.h    |    2 +-
 libavfilter/vf_drawtext.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index f948e54..78c8b6f 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -30,7 +30,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR  2
 #define LIBAVFILTER_VERSION_MINOR 43
-#define LIBAVFILTER_VERSION_MICRO  2
+#define LIBAVFILTER_VERSION_MICRO  3
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
                                                LIBAVFILTER_VERSION_MINOR, \
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 2b34768..4a6693e 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -94,7 +94,7 @@ static const AVOption drawtext_options[]= {
 {"boxcolor", "set box color",        OFFSET(boxcolor_string),    FF_OPT_TYPE_STRING, {.str=NULL},  CHAR_MIN, CHAR_MAX },
 {"shadowcolor", "set shadow color",  OFFSET(shadowcolor_string), FF_OPT_TYPE_STRING, {.str=NULL},  CHAR_MIN, CHAR_MAX },
 {"box",      "set box",              OFFSET(draw_box),           FF_OPT_TYPE_INT,    {.dbl=0},     0,        1        },
-{"fontsize", "set font size",        OFFSET(fontsize),           FF_OPT_TYPE_INT,    {.dbl=16},    1,        72       },
+{"fontsize", "set font size",        OFFSET(fontsize),           FF_OPT_TYPE_INT,    {.dbl=16},    1,        INT_MAX  },
 {"x",        "set x",                OFFSET(x),                  FF_OPT_TYPE_INT,    {.dbl=0},     0,        INT_MAX  },
 {"y",        "set y",                OFFSET(y),                  FF_OPT_TYPE_INT,    {.dbl=0},     0,        INT_MAX  },
 {"shadowx",  "set x",                OFFSET(shadowx),            FF_OPT_TYPE_INT,    {.dbl=0},     INT_MIN,  INT_MAX  },



More information about the ffmpeg-cvslog mailing list