mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
AVOptions: don't segfault on NULL parameter in av_set_options_string()
This commit is contained in:
parent
ab2940691b
commit
85afbb1d00
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue