diff options
-rw-r--r-- | libavutil/opt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 7c80135f5e..bf63bef2af 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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; |