diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-14 13:23:20 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-14 13:23:20 +0100 |
commit | 2493558a06402b1bc1a17f139e517bcd39382ba1 (patch) | |
tree | 692031050f08a9b0cc30ae1fe2096c743e55d66f /libavcodec | |
parent | a9d700f2127fb1e9aafeab00164d625473ce62ed (diff) | |
download | ffmpeg-2493558a06402b1bc1a17f139e517bcd39382ba1.tar.gz |
avcodec/svq3: Check av_mallocs return value
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/svq3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 9459329058..5fa370a4d2 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -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, |