Commit 3f994461 authored by reimar's avatar reimar

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20021 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 817674ba
......@@ -124,13 +124,9 @@ static int alloc_table(VLC *vlc, int size, int use_static)
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment