Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-06 19:52:54 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-06 19:52:54 +0300
commitd2838f09d6dc788d382bb47dd6d6ef157a112ac4 (patch)
treea9a2699f699c4dfac7beef659cf8cc7a83414e5d /cmdutils.c
parentea7af58fc6b3b867d1c98731ab0db81ec44a3576 (diff)
cmdutils.c: Use av_realloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index b35180e705..1361106c75 100644
--- 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);