[libav-bugs] [Bug 744] Increase drawtext fontsize limit

bugzilla at libav.org bugzilla at libav.org
Mon Sep 22 21:08:31 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=744

--- Comment #1 from Mikhail Mukovnikov <yndi at me.com> 2014-09-22 21:08:31 CEST ---
"My proposition" of course, sorry. By the way, I noticed I'm not able to view
or download the patch I've attached, so I insert the content in this message.

Best regards,
Mikhail


*** vf_drawtext.c    2014-09-22 23:01:57.000000000 +0400
--- vf_drawtext.c    2014-09-22 23:03:44.000000000 +0400
***************
*** 168,174 ****
      { "boxcolor",    NULL,                   OFFSET(boxcolor_string),   
AV_OPT_TYPE_STRING, { .str = "white" },          .flags = FLAGS },
      { "shadowcolor", NULL,                   OFFSET(shadowcolor_string),
AV_OPT_TYPE_STRING, { .str = "black" },          .flags = FLAGS },
      { "box",         NULL,                   OFFSET(draw_box),          
AV_OPT_TYPE_INT,    { .i64 = 0       }, 0,       1,       FLAGS },
!     { "fontsize",    NULL,                   OFFSET(fontsize),          
AV_OPT_TYPE_INT,    { .i64 = 16      }, 1,       72,      FLAGS },
      { "x",           NULL,                   OFFSET(x_expr),            
AV_OPT_TYPE_STRING, { .str = "0"     },          .flags = FLAGS },
      { "y",           NULL,                   OFFSET(y_expr),            
AV_OPT_TYPE_STRING, { .str = "0"     },          .flags = FLAGS },
      { "shadowx",     NULL,                   OFFSET(shadowx),           
AV_OPT_TYPE_INT,    { .i64 = 0       }, INT_MIN, INT_MAX, FLAGS },
--- 168,174 ----
      { "boxcolor",    NULL,                   OFFSET(boxcolor_string),   
AV_OPT_TYPE_STRING, { .str = "white" },          .flags = FLAGS },
      { "shadowcolor", NULL,                   OFFSET(shadowcolor_string),
AV_OPT_TYPE_STRING, { .str = "black" },          .flags = FLAGS },
      { "box",         NULL,                   OFFSET(draw_box),          
AV_OPT_TYPE_INT,    { .i64 = 0       }, 0,       1,       FLAGS },
!     { "fontsize",    NULL,                   OFFSET(fontsize),          
AV_OPT_TYPE_INT,    { .i64 = 16      }, 0,       INT_MAX,      FLAGS },
      { "x",           NULL,                   OFFSET(x_expr),            
AV_OPT_TYPE_STRING, { .str = "0"     },          .flags = FLAGS },
      { "y",           NULL,                   OFFSET(y_expr),            
AV_OPT_TYPE_STRING, { .str = "0"     },          .flags = FLAGS },
      { "shadowx",     NULL,                   OFFSET(shadowx),           
AV_OPT_TYPE_INT,    { .i64 = 0       }, INT_MIN, INT_MAX, FLAGS },

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list