mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
oggenc: check return value of av_mallocz()
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
35617366b5
commit
0f62982335
@ -427,6 +427,9 @@ static int ogg_write_header(AVFormatContext *s)
|
||||
return -1;
|
||||
}
|
||||
oggstream = av_mallocz(sizeof(*oggstream));
|
||||
if (!oggstream)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
oggstream->page.stream_index = i;
|
||||
|
||||
if (!(st->codec->flags & CODEC_FLAG_BITEXACT))
|
||||
|
Loading…
Reference in New Issue
Block a user