Mercurial > libavcodec.hg
comparison common.c @ 529:f1f4d3d755f8 libavcodec
get_vlc() optimization
| author | michaelni |
|---|---|
| date | Wed, 10 Jul 2002 17:32:59 +0000 |
| parents | 3e579fbef701 |
| children | 7f1b09bb34c6 |
comparison
equal
deleted
inserted
replaced
| 528:7f05b0eff4b9 | 529:f1f4d3d755f8 |
|---|---|
| 284 n_prefix + table_nb_bits); | 284 n_prefix + table_nb_bits); |
| 285 if (index < 0) | 285 if (index < 0) |
| 286 return -1; | 286 return -1; |
| 287 /* note: realloc has been done, so reload tables */ | 287 /* note: realloc has been done, so reload tables */ |
| 288 table = &vlc->table[table_index]; | 288 table = &vlc->table[table_index]; |
| 289 table[i][0] = index; //code | 289 table[i][0] = index - table_index; //code |
| 290 } | 290 } |
| 291 } | 291 } |
| 292 return table_index; | 292 return table_index; |
| 293 } | 293 } |
| 294 | 294 |
