aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpc7data.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-10-29 20:21:59 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-08 17:51:45 +0100
commit355bce51f72eab7b3258da8870f11e61d08b8583 (patch)
treee1fa9286178a4d7f81714ba3577b376dacb3cae5 /libavcodec/mpc7data.h
parent354ba64f40d3d6a185765a22497eefe71aeaba99 (diff)
downloadffmpeg-355bce51f72eab7b3258da8870f11e61d08b8583.tar.gz
avcodec/mpc7: Apply offsets when creating VLCs
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/mpc7data.h')
-rw-r--r--libavcodec/mpc7data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpc7data.h b/libavcodec/mpc7data.h
index b578cbdb27..ee77393fce 100644
--- a/libavcodec/mpc7data.h
+++ b/libavcodec/mpc7data.h
@@ -55,8 +55,8 @@ static const uint8_t mpc7_quant_vlc_sizes[MPC7_QUANT_VLC_TABLES] = {
27, 25, 7, 9, 15, 31, 63
};
-static const uint8_t mpc7_quant_vlc_off[MPC7_QUANT_VLC_TABLES] = {
- 0, 0, 3, 4, 7, 15, 31
+static const int8_t mpc7_quant_vlc_off[MPC7_QUANT_VLC_TABLES] = {
+ 0, 0, -3, -4, -7, -15, -31
};
static const uint8_t mpc7_quant_vlcs[177 * 2 * 2] = {