diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-19 13:14:12 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:59 +0100 |
commit | ef338de23c33f0f72143032af80d30014ef3e4ab (patch) | |
tree | 0c8d40c7fbf1c55b5162d78a6e05ca5c25ff9b52 | |
parent | d23b9dd9cf4179f774e25a7da8171cdada59a36a (diff) | |
download | ffmpeg-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.c | 1 |
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; } |