mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00: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