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 aed96e13c1dafd44a6995f23fadd9f64e90547d4)
This commit is contained in:
parent
d23b9dd9cf
commit
ef338de23c
@ -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…
x
Reference in New Issue
Block a user