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:
48895a2
)
avfilter/af_ashowinfo: Use av_realloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Jan 2015 15:26:42 +0000
(16:26 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 20 Jan 2015 16:00:16 +0000
(17:00 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_ashowinfo.c
patch
|
blob
|
history
diff --git
a/libavfilter/af_ashowinfo.c
b/libavfilter/af_ashowinfo.c
index
ee95029
..
0e6c6c0
100644
(file)
--- a/
libavfilter/af_ashowinfo.c
+++ b/
libavfilter/af_ashowinfo.c
@@
-159,7
+159,7
@@
static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
int data_size = buf->nb_samples * block_align;
int planes = planar ? channels : 1;
int i;
- void *tmp_ptr = av_realloc
(s->plane_checksums, channels *
sizeof(*s->plane_checksums));
+ void *tmp_ptr = av_realloc
_array(s->plane_checksums, channels,
sizeof(*s->plane_checksums));
if (!tmp_ptr)
return AVERROR(ENOMEM);