[FFmpeg-cvslog] avformat/dashdec: Check allocation of AVProgram

Andreas Rheinhardt git at videolan.org
Mon Sep 21 06:00:07 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sat Sep 19 13:14:12 2020 +0200| [aed96e13c1dafd44a6995f23fadd9f64e90547d4] | committer: Andreas Rheinhardt

avformat/dashdec: Check allocation of AVProgram

Reviewed-by: Steven Liu <lq at chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aed96e13c1dafd44a6995f23fadd9f64e90547d4
---

 libavformat/dashdec.c | 1 +
 1 file changed, 1 insertion(+)

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;
         }
 



More information about the ffmpeg-cvslog mailing list