|
@@ -121,7 +121,7 @@ static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int ind
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- if (!strcmp(filt_name, "scale") && !strstr(args, "flags")) {
|
|
|
+ if (!strcmp(filt_name, "scale") && args && !strstr(args, "flags")) {
|
|
|
snprintf(tmp_args, sizeof(tmp_args), "%s:%s",
|
|
|
args, ctx->scale_sws_opts);
|
|
|
args = tmp_args;
|