summaryrefslogtreecommitdiff
path: root/libavformat/dashdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-19 13:14:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-21 04:31:47 +0200
commitaed96e13c1dafd44a6995f23fadd9f64e90547d4 (patch)
treeb3e9f66ad0d2884a60796a86b8691bd17f7ccba1 /libavformat/dashdec.c
parentac2852d7958622322c69d68212d96fe41a595001 (diff)
avformat/dashdec: Check allocation of AVProgram
Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/dashdec.c')
-rw-r--r--libavformat/dashdec.c1
1 files changed, 1 insertions, 0 deletions
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;
}