From aed96e13c1dafd44a6995f23fadd9f64e90547d4 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 19 Sep 2020 13:14:12 +0200 Subject: [PATCH] avformat/dashdec: Check allocation of AVProgram Reviewed-by: Steven Liu Signed-off-by: Andreas Rheinhardt --- libavformat/dashdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 55212661be..4f87ef981b 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -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; }