summaryrefslogtreecommitdiff
path: root/libavcodec/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/common.c')
-rw-r--r--libavcodec/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/common.c b/libavcodec/common.c
index a2580ba281..4868bc0237 100644
--- a/libavcodec/common.c
+++ b/libavcodec/common.c
@@ -171,8 +171,8 @@ static int alloc_table(VLC *vlc, int size)
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;
}