Commit 85afbb1d authored by Anton Khirnov's avatar Anton Khirnov

AVOptions: don't segfault on NULL parameter in av_set_options_string()

parent ab294069
......@@ -696,6 +696,9 @@ int av_set_options_string(void *ctx, const char *opts,
{
int ret, count = 0;
if (!opts)
return 0;
while (*opts) {
if ((ret = parse_key_value_pair(ctx, &opts, key_val_sep, pairs_sep)) < 0)
return ret;
......
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