]> git.sesse.net Git - ffmpeg/commitdiff
avformat/dashdec: Check allocation of AVProgram
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 19 Sep 2020 11:14:12 +0000 (13:14 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:31:47 +0000 (04:31 +0200)
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/dashdec.c

index 55212661be686ffc750caeaafcbaf994e80367b1..4f87ef981b146d6b1d24b8b60bc7c76fd5b5e9c5 100644 (file)
@@ -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;
         }