Browse Source

avformat/dashdec: Check allocation of AVProgram

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit aed96e13c1)
release/4.3
Andreas Rheinhardt 5 years ago
parent
commit
ef338de23c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/dashdec.c

+ 1
- 0
libavformat/dashdec.c View File

@@ -2120,6 +2120,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