Commit b1b0fd27 authored by Michael Niedermayer's avatar Michael Niedermayer

pad: fix format string length

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5f268ca5
...@@ -114,7 +114,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) ...@@ -114,7 +114,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
av_strlcpy(pad->y_expr, "0" , sizeof(pad->h_expr)); av_strlcpy(pad->y_expr, "0" , sizeof(pad->h_expr));
if (args) if (args)
sscanf(args, "%255[^:]:%255[^:]:%255[^:]:%255[^:]:%255s", sscanf(args, "%255[^:]:%255[^:]:%255[^:]:%255[^:]:%127s",
pad->w_expr, pad->h_expr, pad->x_expr, pad->y_expr, color_string); pad->w_expr, pad->h_expr, pad->x_expr, pad->y_expr, color_string);
if (av_parse_color(pad->color, color_string, -1, ctx) < 0) if (av_parse_color(pad->color, color_string, -1, ctx) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment