aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-19 17:12:09 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-19 17:12:09 +0100
commit438c0a665af3a368b49011d5ec109d9031090dfc (patch)
treebb9ac58affa8ed7d427c0b768479b161437f7c6c
parent6c702c3c631455675c48efd70668dd7718b4a7c0 (diff)
downloadffmpeg-438c0a665af3a368b49011d5ec109d9031090dfc.tar.gz
avcodec/xan: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/xan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 968464c65b..2c565eed0d 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -567,8 +567,8 @@ static int xan_decode_frame(AVCodecContext *avctx,
return AVERROR_INVALIDDATA;
if (s->palettes_count >= PALETTES_MAX)
return AVERROR_INVALIDDATA;
- tmpptr = av_realloc(s->palettes,
- (s->palettes_count + 1) * AVPALETTE_SIZE);
+ tmpptr = av_realloc_array(s->palettes,
+ s->palettes_count + 1, AVPALETTE_SIZE);
if (!tmpptr)
return AVERROR(ENOMEM);
s->palettes = tmpptr;