mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
lavfi/frei0r: fix crash when parameters are not set.
This commit is contained in:
parent
760f7d3a90
commit
e85ea7d387
@ -141,6 +141,9 @@ static int set_params(AVFilterContext *ctx, const char *params)
|
||||
Frei0rContext *frei0r = ctx->priv;
|
||||
int i;
|
||||
|
||||
if (!params)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < frei0r->plugin_info.num_params; i++) {
|
||||
f0r_param_info_t info;
|
||||
char *param;
|
||||
|
Loading…
Reference in New Issue
Block a user