Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-26 00:11:02 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-01 15:26:01 +0300
commit90aa2a88f98473810bbbf6514a8327ae8ea9208a (patch)
tree700cdfc2ae6be0eb73d67f89464057bb10aa0386 /fftools
parent601faaed92de2fb036463b647d5b26cb7c649002 (diff)
fftools/ffmpeg_opt: Check creation of new program
Fixes Coverity issue #1512413. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg_opt.c2
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) {