1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

pad: fix format string length

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-14 05:42:10 +01:00
parent 5f268ca5c5
commit b1b0fd2790

View File

@ -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)