diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-25 23:11:02 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-01 14:26:01 +0200 |
commit | 90aa2a88f98473810bbbf6514a8327ae8ea9208a (patch) | |
tree | 700cdfc2ae6be0eb73d67f89464057bb10aa0386 | |
parent | 601faaed92de2fb036463b647d5b26cb7c649002 (diff) | |
download | ffmpeg-90aa2a88f98473810bbbf6514a8327ae8ea9208a.tar.gz |
fftools/ffmpeg_opt: Check creation of new program
Fixes Coverity issue #1512413.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | fftools/ffmpeg_opt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index c8d3ec3ea6..5febe319e4 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -2759,6 +2759,8 @@ static void of_add_programs(AVFormatContext *oc, const OptionsContext *o) } program = av_new_program(oc, progid); + if (!program) + report_and_exit(AVERROR(ENOMEM)); p = o->program[i].u.str; while(*p) { |