OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c702c3
)
avcodec/xan: Use av_realloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 19 Jan 2015 16:12:09 +0000
(17:12 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 19 Jan 2015 16:12:09 +0000
(17:12 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/xan.c
patch
|
blob
|
history
diff --git
a/libavcodec/xan.c
b/libavcodec/xan.c
index
968464c
..
2c565ee
100644
(file)
--- 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;