[FFmpeg-devel] [PATCH] fftools/ffmpeg_opt: Check creation of new program
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Fri Aug 26 00:15:51 EEST 2022
Fixes Coverity issue #1512413.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
fftools/ffmpeg_opt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index 8128dcf9fb..aec94dc0f4 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -2769,6 +2769,8 @@ static void of_add_programs(AVFormatContext *oc, const OptionsContext *o)
}
program = av_new_program(oc, progid);
+ if (!program)
+ exit_program(1);
p = o->program[i].u.str;
while(*p) {
--
2.34.1
More information about the ffmpeg-devel
mailing list