]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bitstream.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / bitstream.c
index b164ecdd11cdb0d12e07c2249094943d015e8731..191190d8e23d4fe4e67bbeadee20907f4b045e99 100644 (file)
@@ -105,8 +105,8 @@ static int alloc_table(VLC *vlc, int size, int use_static)
         if(use_static)
             abort(); //cant do anything, init_vlc() is used with too little memory
         vlc->table_allocated += (1 << vlc->bits);
-        vlc->table = av_realloc(vlc->table,
-                                sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
+        vlc->table = av_realloc_f(vlc->table,
+                                  vlc->table_allocated, sizeof(VLC_TYPE) * 2);
         if (!vlc->table)
             return -1;
     }