|
|
@ -396,7 +396,7 @@ static av_cold int init(AVFilterContext *ctx) |
|
|
|
AVFilterPad pad = { NULL }; |
|
|
|
AVFilterPad pad = { NULL }; |
|
|
|
char *p, *arg, *saveptr = NULL; |
|
|
|
char *p, *arg, *saveptr = NULL; |
|
|
|
unsigned long nb_ports; |
|
|
|
unsigned long nb_ports; |
|
|
|
int i; |
|
|
|
int i, j = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (!s->dl_name) { |
|
|
|
if (!s->dl_name) { |
|
|
|
av_log(ctx, AV_LOG_ERROR, "No plugin name provided\n"); |
|
|
|
av_log(ctx, AV_LOG_ERROR, "No plugin name provided\n"); |
|
|
@ -543,8 +543,11 @@ static av_cold int init(AVFilterContext *ctx) |
|
|
|
p = NULL; |
|
|
|
p = NULL; |
|
|
|
|
|
|
|
|
|
|
|
if (sscanf(arg, "c%d=%f", &i, &val) != 2) { |
|
|
|
if (sscanf(arg, "c%d=%f", &i, &val) != 2) { |
|
|
|
av_log(ctx, AV_LOG_ERROR, "Invalid syntax.\n"); |
|
|
|
if (sscanf(arg, "%f", &val) != 1) { |
|
|
|
return AVERROR(EINVAL); |
|
|
|
av_log(ctx, AV_LOG_ERROR, "Invalid syntax.\n"); |
|
|
|
|
|
|
|
return AVERROR(EINVAL); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
i = j++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ((ret = set_control(ctx, i, val)) < 0) |
|
|
|
if ((ret = set_control(ctx, i, val)) < 0) |
|
|
|