[FFmpeg-devel] [PATCH 09/21] avformat/dashdec: Check allocation of AVProgram
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Sat Sep 19 19:35:58 EEST 2020
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
What do we need this program for anyway? What sense does it make to
create a single program containing all streams?
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;
}
--
2.25.1
More information about the ffmpeg-devel
mailing list