summaryrefslogtreecommitdiff
path: root/libavcodec/mpc7.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-15 03:45:22 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-15 22:13:24 +0200
commitbec4e158596bbb5af0eb2e9582cbc28961e6c068 (patch)
treeb94e8491cc0939b5f0970d24fd89ca1b61d5b730 /libavcodec/mpc7.c
parent36c582f515a7da4c5dda4890fcf588164f91255f (diff)
avcodec/mpc7, mpc7data: Make overlong arrays smaller
For the VLC table arrays in mpc7_decode_init() this fixes a regression introduced in 1e40dc920a838e35f1483b20bfcd417437e68741. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mpc7.c')
-rw-r--r--libavcodec/mpc7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpc7.c b/libavcodec/mpc7.c
index 8518bc2f8a..3c9ef6a600 100644
--- a/libavcodec/mpc7.c
+++ b/libavcodec/mpc7.c
@@ -97,10 +97,10 @@ static av_cold int mpc7_decode_init(AVCodecContext * avctx)
&mpc7_scfi[0], 2, 1, 1 << MPC7_SCFI_BITS);
INIT_VLC_STATIC(&dscf_vlc, MPC7_DSCF_BITS, MPC7_DSCF_SIZE,
&mpc7_dscf[1], 2, 1,
- &mpc7_dscf[0], 2, 1, 1 << MPC7_DSCF_SIZE);
+ &mpc7_dscf[0], 2, 1, 1 << MPC7_DSCF_BITS);
INIT_VLC_STATIC(&hdr_vlc, MPC7_HDR_BITS, MPC7_HDR_SIZE,
&mpc7_hdr[1], 2, 1,
- &mpc7_hdr[0], 2, 1, 1 << MPC7_HDR_SIZE);
+ &mpc7_hdr[0], 2, 1, 1 << MPC7_HDR_BITS);
for(i = 0; i < MPC7_QUANT_VLC_TABLES; i++){
for(j = 0; j < 2; j++){
quant_vlc[i][j].table = &quant_tables[quant_offsets[i*2 + j]];