diff options
author | Yu Yang <yuyang14@kuaishou.com> | 2021-12-15 10:47:28 +0800 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-16 11:56:00 +0100 |
commit | a4580bf95985e033eb8857156db3670eeec48131 (patch) | |
tree | 91c8b151be2b0e3fe12800bc061d2f030f0edd9a /fftools/cmdutils.h | |
parent | 3f46ffe956a563a975b65fcb0bcf131fd30956ff (diff) | |
download | ffmpeg-a4580bf95985e033eb8857156db3670eeec48131.tar.gz |
fftools/cmdutils: Avoid crash when opts could not be allocated
If 'opts' could not be allocated, exiting the program to avoid crash when release it.
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Yu Yang <yuyang14@kuaishou.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r-- | fftools/cmdutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h index 82cda208be..50eed9b13a 100644 --- a/fftools/cmdutils.h +++ b/fftools/cmdutils.h @@ -430,8 +430,8 @@ AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id, * Each dictionary will contain the options from codec_opts which can * be applied to the corresponding stream codec context. * - * @return pointer to the created array of dictionaries, NULL if it - * cannot be created + * @return pointer to the created array of dictionaries. + * Calls exit() on failure. */ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s, AVDictionary *codec_opts); |