mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
AVOptions: don't segfault on NULL parameter in av_set_options_string()
This commit is contained in:
parent
ab2940691b
commit
85afbb1d00
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user