[FFmpeg-cvslog] r20021 - trunk/libavcodec/bitstream.c

reimar subversion
Fri Sep 25 00:36:52 CEST 2009


Author: reimar
Date: Fri Sep 25 00:36:52 2009
New Revision: 20021

Log:
Remove a piece of code left-over from the removed alloc'd static vlc table code.

Modified:
   trunk/libavcodec/bitstream.c

Modified: trunk/libavcodec/bitstream.c
==============================================================================
--- trunk/libavcodec/bitstream.c	Thu Sep 24 23:26:35 2009	(r20020)
+++ trunk/libavcodec/bitstream.c	Fri Sep 25 00:36:52 2009	(r20021)
@@ -124,13 +124,9 @@ static int alloc_table(VLC *vlc, int siz
     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)



More information about the ffmpeg-cvslog mailing list