You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
AVOptions: don't segfault on NULL parameter in av_set_options_string()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user