Fixes Coverity issue #1512413.
Signed-off-by: Andreas Rheinhardt <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".