use av_malloc() functions - added av_strdup and av_realloc()
[ffmpeg.git] / libavcodec / common.c
index a2580ba28136f43ead19ad468ad7995722fa7e13..4868bc02372b614b213746c97e84afde1ee6c9d3 100644 (file)
@@ -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;
     }