diff mbox series

[FFmpeg-devel,09/21] avformat/dashdec: Check allocation of AVProgram

Message ID 20200919163610.1099233-9-andreas.rheinhardt@gmail.com
State Accepted
Commit aed96e13c1dafd44a6995f23fadd9f64e90547d4
Headers show
Series [FFmpeg-devel,01/21] avformat/dashdec: Avoid double free on error | expand


Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 19, 2020, 4:35 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@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 mbox series


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;