diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-19 02:49:04 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-19 19:13:05 +0200 |
commit | 141f03541b39e131a5e8aa776a88abe77b70618e (patch) | |
tree | 6feaa685df03910c39d317d67522cb1f912200f4 /libavutil/opt.h | |
parent | 15f03725ced37e3b99e76f63f52cb92e10f134e2 (diff) | |
download | ffmpeg-141f03541b39e131a5e8aa776a88abe77b70618e.tar.gz |
opt: do not crash in av_set_options_string() if opts == NULL
Add missing NULL check, and update documentation accordingly.
Diffstat (limited to 'libavutil/opt.h')
-rw-r--r-- | libavutil/opt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/opt.h b/libavutil/opt.h index 97a1cb5774..68873de563 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -169,6 +169,7 @@ void av_opt_set_defaults2(void *s, int mask, int flags); * key. ctx must be an AVClass context, storing is done using * AVOptions. * + * @param opts options string to parse, may be NULL * @param key_val_sep a 0-terminated list of characters used to * separate key from value * @param pairs_sep a 0-terminated list of characters used to separate |