mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/dashdec: Check allocation of AVProgram
Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
ac2852d795
commit
aed96e13c1
@ -2137,6 +2137,7 @@ static int dash_read_header(AVFormatContext *s)
|
|||||||
AVProgram *program;
|
AVProgram *program;
|
||||||
program = av_new_program(s, 0);
|
program = av_new_program(s, 0);
|
||||||
if (!program) {
|
if (!program) {
|
||||||
|
ret = AVERROR(ENOMEM);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user