mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/svq3: Check av_mallocs return value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a9d700f212
commit
2493558a06
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user