Commit 2493558a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/svq3: Check av_mallocs return value

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a9d700f2
......@@ -1008,6 +1008,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
}
buf = av_malloc(buf_len);
if (!buf) {
ret = AVERROR(ENOMEM);
goto fail;
}
av_log(avctx, AV_LOG_DEBUG, "watermark size: %ux%u\n",
watermark_width, watermark_height);
av_log(avctx, AV_LOG_DEBUG,
......
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