[FFmpeg-cvslog] avienc: Replace av_realloc by av_realloc_f when relevant.

Nicolas George git at videolan.org
Sat Oct 1 21:38:55 CEST 2011


ffmpeg | branch: release/0.8 | Nicolas George <nicolas.george at normalesup.org> | Wed Sep 28 17:16:11 2011 +0200| [7bc9c32573ab482d44f62bc08f9e508c81adae33] | committer: Michael Niedermayer

avienc: Replace av_realloc by av_realloc_f when relevant.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit e47cfe9e5c10eee3c8d0b6aff81792c0f10e66e1)

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

 libavformat/avienc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 8a53bb5..deff1c8 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -558,7 +558,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
         int cl = idx->entry / AVI_INDEX_CLUSTER_SIZE;
         int id = idx->entry % AVI_INDEX_CLUSTER_SIZE;
         if (idx->ents_allocated <= idx->entry) {
-            idx->cluster = av_realloc(idx->cluster, (cl+1)*sizeof(void*));
+            idx->cluster = av_realloc_f(idx->cluster, sizeof(void*), cl+1);
             if (!idx->cluster)
                 return -1;
             idx->cluster[cl] = av_malloc(AVI_INDEX_CLUSTER_SIZE*sizeof(AVIIentry));



More information about the ffmpeg-cvslog mailing list