1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/dashdec: Check allocation of AVProgram

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-09-19 13:14:12 +02:00
parent ac2852d795
commit aed96e13c1

View File

@ -2137,6 +2137,7 @@ static int dash_read_header(AVFormatContext *s)
AVProgram *program;
program = av_new_program(s, 0);
if (!program) {
ret = AVERROR(ENOMEM);
goto fail;
}