aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/faxcompr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-12 15:37:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-12 15:37:57 +0200
commit713e62e91d235311faf1ae80777919ae7826b013 (patch)
treed6e1747ef55f25a947a11bfc8639380b81454803 /libavcodec/faxcompr.c
parent36053aeff651ccf11b9a15dcbe61aaa1317135ac (diff)
downloadffmpeg-713e62e91d235311faf1ae80777919ae7826b013.tar.gz
avcodec/faxcompr: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/faxcompr.c')
-rw-r--r--libavcodec/faxcompr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
index 900851b3f1..155f78da66 100644
--- a/libavcodec/faxcompr.c
+++ b/libavcodec/faxcompr.c
@@ -287,8 +287,8 @@ int ff_ccitt_unpack(AVCodecContext *avctx, const uint8_t *src, int srcsize,
int runsize = avctx->width + 2;
int has_eol;
- runs = av_malloc(runsize * sizeof(runs[0]));
- ref = av_malloc(runsize * sizeof(ref[0]));
+ runs = av_malloc_array(runsize, sizeof(runs[0]));
+ ref = av_malloc_array(runsize, sizeof(ref[0]));
if (!runs || !ref) {
ret = AVERROR(ENOMEM);
goto fail;