Commit e85ea7d3 authored by Clément Bœsch's avatar Clément Bœsch

lavfi/frei0r: fix crash when parameters are not set.

parent 760f7d3a
...@@ -141,6 +141,9 @@ static int set_params(AVFilterContext *ctx, const char *params) ...@@ -141,6 +141,9 @@ static int set_params(AVFilterContext *ctx, const char *params)
Frei0rContext *frei0r = ctx->priv; Frei0rContext *frei0r = ctx->priv;
int i; int i;
if (!params)
return 0;
for (i = 0; i < frei0r->plugin_info.num_params; i++) { for (i = 0; i < frei0r->plugin_info.num_params; i++) {
f0r_param_info_t info; f0r_param_info_t info;
char *param; char *param;
......
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