aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/audiodsp.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-15 05:23:07 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-15 22:14:43 +0200
commit158f7df5e6de8c917c679c639758e9ee1d739900 (patch)
tree93988cb9242949ff559f032893fd85ade975268e /libavcodec/audiodsp.c
parentbec4e158596bbb5af0eb2e9582cbc28961e6c068 (diff)
downloadffmpeg-158f7df5e6de8c917c679c639758e9ee1d739900.tar.gz
avcodec/mpc7, mpc7data: Avoid gaps in array
The Musepack decoder uses static VLC tables to parse the bitstream. There are 14 different quant tables VLCs and each of them has a varying number of codes. The maximum number is 63, the average number is 25.3. Up until now, the array containing the raw data was of type uint16_t [7][2][64 * 2] (the 14 tables come in pairs of two, hence [7][2] instead of [14]) and from this it follows that there were large gaps in said array. This commit changes this by making it a continuous array instead. Doing so saves about 2KB. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/audiodsp.c')
0 files changed, 0 insertions, 0 deletions