aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-19 13:14:12 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:59 +0100
commitef338de23c33f0f72143032af80d30014ef3e4ab (patch)
tree0c8d40c7fbf1c55b5162d78a6e05ca5c25ff9b52
parentd23b9dd9cf4179f774e25a7da8171cdada59a36a (diff)
downloadffmpeg-ef338de23c33f0f72143032af80d30014ef3e4ab.tar.gz
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)
-rw-r--r--libavformat/dashdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index d40de1406c..b445d9c424 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -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;
}