Commit c8fa6478 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Luca Barbato

oggparsespeex: Fix unchecked malloc

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent afdff800
......@@ -47,6 +47,8 @@ static int speex_header(AVFormatContext *s, int idx) {
if (!spxp) {
spxp = av_mallocz(sizeof(*spxp));
if (!spxp)
return AVERROR(ENOMEM);
os->private = spxp;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment