diff options
author | Claudio Freire <klaussfreire@gmail.com> | 2015-09-21 03:41:26 -0300 |
---|---|---|
committer | Claudio Freire <klaussfreire@gmail.com> | 2015-09-23 02:33:40 -0300 |
commit | b01f3ddad31aba45254dfd553447c7952f86fd31 (patch) | |
tree | aa33c1a7d23fa1a3d2e196723ca5a999626c9856 /libavcodec/aacenctab.h | |
parent | 91b668acd6decec0a6f8d20bf56e2644f96adcb9 (diff) |
AAC encoder: simplify and speed up find_min_book
Trivial change to simplify the small but hot
find_min_book function. The new form is easier to
understand and faster.
Diffstat (limited to 'libavcodec/aacenctab.h')
-rw-r--r-- | libavcodec/aacenctab.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/aacenctab.h b/libavcodec/aacenctab.h index 9e7595a755..381b4a4e16 100644 --- a/libavcodec/aacenctab.h +++ b/libavcodec/aacenctab.h @@ -110,4 +110,8 @@ static const uint8_t aac_cb_in_map[CB_TOT_ALL+1] = {0,1,2,3,4,5,6,7,8,9,10,11,0, static const uint8_t aac_cb_range [12] = {0, 3, 3, 3, 3, 9, 9, 8, 8, 13, 13, 17}; static const uint8_t aac_cb_maxval[12] = {0, 1, 1, 2, 2, 4, 4, 7, 7, 12, 12, 16}; +static unsigned char aac_maxval_cb[] = { + 0, 1, 3, 5, 5, 7, 7, 7, 9, 9, 9, 9, 9, 11 +}; + #endif /* AVCODEC_AACENCTAB_H */ |