diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2011-09-28 17:16:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-28 18:13:52 +0200 |
commit | 198ed6474d603f930430067b8b56955d443e821c (patch) | |
tree | a0c23d9e9e81e82dde7f77a6282b3b2b39faef6b /libavcodec/bitstream.c | |
parent | 1d3b280e7116993d64cf444957d6dfb00b2a9627 (diff) | |
download | ffmpeg-198ed6474d603f930430067b8b56955d443e821c.tar.gz |
bitstream: Replace av_realloc by av_realloc_f when relevant.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index b164ecdd11..191190d8e2 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; } |