[FFmpeg-cvslog] bitstream: Replace av_realloc by av_realloc_f when relevant.
Nicolas George
git at videolan.org
Wed Sep 28 18:17:16 CEST 2011
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Sep 28 17:16:11 2011 +0200| [198ed6474d603f930430067b8b56955d443e821c] | 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>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=198ed6474d603f930430067b8b56955d443e821c
---
libavcodec/bitstream.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index b164ecd..191190d 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -105,8 +105,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