Browse Source

avformat/dashdec: Check allocation of AVProgram

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 4 years ago
parent
commit
aed96e13c1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/dashdec.c

+ 1
- 0
libavformat/dashdec.c View 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;
}



Loading…
Cancel
Save