X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=bitstream.c;h=a1c7c943138d41993807109be09969a58e914a0b;hb=5ae1a5bb9732d777f856d5bb003585f81e3c519a;hp=c2018b56f593264b15034b639c4103045220ab96;hpb=80541d0f045e1ed57332800eff9832e0a5b72ddf;p=paraslash.git diff --git a/bitstream.c b/bitstream.c index c2018b56..a1c7c943 100644 --- a/bitstream.c +++ b/bitstream.c @@ -6,9 +6,9 @@ * Copyright (c) 2000, 2001 Fabrice Bellard * Copyright (c) 2002-2004 Michael Niedermayer * alternative bitstream reader & writer by Michael Niedermayer + * Copyright (C) 2009 Andre Noll * - * Licensed under the GNU Lesser General Public License. - * For licencing details see COPYING.LIB. + * Licensed under the GNU Lesser General Public License. see file COPYING.LIB. */ /** \file bitstream.c Bitstream API for the wma decoder. */ @@ -46,8 +46,8 @@ static void alloc_table(struct vlc *vlc, int size) vlc->table_size += size; if (vlc->table_size > vlc->table_allocated) { vlc->table_allocated += (1 << vlc->bits); - vlc->table = para_realloc(vlc->table, - sizeof(int16_t) * 2 * vlc->table_allocated); + vlc->table = arr_realloc(vlc->table, vlc->table_allocated, + sizeof(int16_t) * 2); } }