[FFmpeg-cvslog] avcodec/svq3: Check av_mallocs return value
Michael Niedermayer
git at videolan.org
Wed Jan 14 13:53:27 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jan 14 13:23:20 2015 +0100| [2493558a06402b1bc1a17f139e517bcd39382ba1] | committer: Michael Niedermayer
avcodec/svq3: Check av_mallocs return value
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2493558a06402b1bc1a17f139e517bcd39382ba1
---
libavcodec/svq3.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 9459329..5fa370a 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,
More information about the ffmpeg-cvslog
mailing list