diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-19 13:14:12 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-21 04:31:47 +0200 |
commit | aed96e13c1dafd44a6995f23fadd9f64e90547d4 (patch) | |
tree | b3e9f66ad0d2884a60796a86b8691bd17f7ccba1 /libavformat | |
parent | ac2852d7958622322c69d68212d96fe41a595001 (diff) | |
download | ffmpeg-aed96e13c1dafd44a6995f23fadd9f64e90547d4.tar.gz |
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')
-rw-r--r-- | libavformat/dashdec.c | 1 |
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; } |