Mercurial > libavcodec.hg
diff common.c @ 1031:19de1445beb2 libavcodec
use av_malloc() functions - added av_strdup and av_realloc()
author | bellard |
---|---|
date | Thu, 23 Jan 2003 23:03:09 +0000 |
parents | 1f9afd8b9131 |
children | 44a230c11d83 |
line wrap: on
line diff
--- a/common.c Thu Jan 23 22:59:06 2003 +0000 +++ b/common.c Thu Jan 23 23:03:09 2003 +0000 @@ -171,8 +171,8 @@ vlc->table_size += size; if (vlc->table_size > vlc->table_allocated) { vlc->table_allocated += (1 << vlc->bits); - vlc->table = realloc(vlc->table, - sizeof(VLC_TYPE) * 2 * vlc->table_allocated); + vlc->table = av_realloc(vlc->table, + sizeof(VLC_TYPE) * 2 * vlc->table_allocated); if (!vlc->table) return -1; }