diff bitstream.c @ 10268:05190dd593c9 libavcodec

Remove a piece of code left-over from the removed alloc'd static vlc table code.
author reimar
date Thu, 24 Sep 2009 22:36:52 +0000
parents fd9dfd5aa5e9
children 74d5ddc5c0f6
line wrap: on
line diff
--- a/bitstream.c	Thu Sep 24 21:26:35 2009 +0000
+++ b/bitstream.c	Thu Sep 24 22:36:52 2009 +0000
@@ -124,13 +124,9 @@
     index = vlc->table_size;
     vlc->table_size += size;
     if (vlc->table_size > vlc->table_allocated) {
-        if(use_static>1)
+        if(use_static)
             abort(); //cant do anything, init_vlc() is used with too little memory
         vlc->table_allocated += (1 << vlc->bits);
-        if(use_static)
-            vlc->table = ff_realloc_static(vlc->table,
-                                           sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
-        else
             vlc->table = av_realloc(vlc->table,
                                     sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
         if (!vlc->table)