avformat/dashdec: Check allocation of AVProgram

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit aed96e13c1dafd44a6995f23fadd9f64e90547d4)
This commit is contained in:
Andreas Rheinhardt 2020-09-19 13:14:12 +02:00
parent d23b9dd9cf
commit ef338de23c

View File

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