[FFmpeg-cvslog] bitstream: Replace av_realloc by av_realloc_f when relevant.
Nicolas George
git at videolan.org
Sat Oct 1 21:38:54 CEST 2011
ffmpeg | branch: release/0.8 | Nicolas George <nicolas.george at normalesup.org> | Wed Sep 28 17:16:11 2011 +0200| [bbb191c721d7104e4fcc77b45856cc9d585b0636] | committer: Michael Niedermayer
bitstream: 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 198ed6474d603f930430067b8b56955d443e821c)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bbb191c721d7104e4fcc77b45856cc9d585b0636
---
libavcodec/bitstream.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index f0fa965..e2a3d56 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -109,8 +109,8 @@ static int alloc_table(VLC *vlc, int size, int use_static)
if(use_static)
abort(); //cant do anything, init_vlc() is used with too little memory
vlc->table_allocated += (1 << vlc->bits);
- vlc->table = av_realloc(vlc->table,
- sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
+ vlc->table = av_realloc_f(vlc->table,
+ vlc->table_allocated, sizeof(VLC_TYPE) * 2);
if (!vlc->table)
return -1;
}
More information about the ffmpeg-cvslog
mailing list