mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-19 21:36:54 +00:00
oggparsespeex: Fix unchecked malloc
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
afdff80081
commit
c8fa647811
@ -47,6 +47,8 @@ static int speex_header(AVFormatContext *s, int idx) {
|
|||||||
|
|
||||||
if (!spxp) {
|
if (!spxp) {
|
||||||
spxp = av_mallocz(sizeof(*spxp));
|
spxp = av_mallocz(sizeof(*spxp));
|
||||||
|
if (!spxp)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
os->private = spxp;
|
os->private = spxp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user