You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fftools/ffmpeg_opt: Check creation of new program
Fixes Coverity issue #1512413. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -2759,6 +2759,8 @@ static void of_add_programs(AVFormatContext *oc, const OptionsContext *o)
|
|||||||
}
|
}
|
||||||
|
|
||||||
program = av_new_program(oc, progid);
|
program = av_new_program(oc, progid);
|
||||||
|
if (!program)
|
||||||
|
report_and_exit(AVERROR(ENOMEM));
|
||||||
|
|
||||||
p = o->program[i].u.str;
|
p = o->program[i].u.str;
|
||||||
while(*p) {
|
while(*p) {
|
||||||
|
Reference in New Issue
Block a user