projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ea7af58
)
cmdutils.c: Use av_realloc_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 6 Jan 2015 16:52:54 +0000
(17:52 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 6 Jan 2015 16:52:54 +0000
(17:52 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c
patch
|
blob
|
history
diff --git
a/cmdutils.c
b/cmdutils.c
index
b35180e
..
1361106
100644
(file)
--- a/
cmdutils.c
+++ b/
cmdutils.c
@@
-2060,7
+2060,7
@@
void *grow_array(void *array, int elem_size, int *size, int new_size)
exit_program(1);
}
if (*size < new_size) {
- uint8_t *tmp = av_realloc
(array, new_size*
elem_size);
+ uint8_t *tmp = av_realloc
_array(array, new_size,
elem_size);
if (!tmp) {
av_log(NULL, AV_LOG_ERROR, "Could not alloc buffer.\n");
exit_program(1);