X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=bitstream.c;h=dfc1e55e67aced611014fc90b86128e8bd61a457;hb=HEAD;hp=c2018b56f593264b15034b639c4103045220ab96;hpb=30fdc1bcb5fd37398943cb6b072a9ca4633f2592;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); } }