comparison 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
comparison
equal deleted inserted replaced
10267:ec0e313a00aa 10268:05190dd593c9
122 { 122 {
123 int index; 123 int index;
124 index = vlc->table_size; 124 index = vlc->table_size;
125 vlc->table_size += size; 125 vlc->table_size += size;
126 if (vlc->table_size > vlc->table_allocated) { 126 if (vlc->table_size > vlc->table_allocated) {
127 if(use_static>1) 127 if(use_static)
128 abort(); //cant do anything, init_vlc() is used with too little memory 128 abort(); //cant do anything, init_vlc() is used with too little memory
129 vlc->table_allocated += (1 << vlc->bits); 129 vlc->table_allocated += (1 << vlc->bits);
130 if(use_static)
131 vlc->table = ff_realloc_static(vlc->table,
132 sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
133 else
134 vlc->table = av_realloc(vlc->table, 130 vlc->table = av_realloc(vlc->table,
135 sizeof(VLC_TYPE) * 2 * vlc->table_allocated); 131 sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
136 if (!vlc->table) 132 if (!vlc->table)
137 return -1; 133 return -1;
138 } 134 }