[FFmpeg-cvslog] cmdutils.c: Use av_realloc_array()

Michael Niedermayer git at videolan.org
Tue Jan 6 18:15:13 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan  6 17:52:54 2015 +0100| [d2838f09d6dc788d382bb47dd6d6ef157a112ac4] | committer: Michael Niedermayer

cmdutils.c: Use av_realloc_array()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d2838f09d6dc788d382bb47dd6d6ef157a112ac4
---

 cmdutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmdutils.c b/cmdutils.c
index b35180e..1361106 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);



More information about the ffmpeg-cvslog mailing list