diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-01 16:16:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-01 16:16:13 +0100 |
commit | b2a7c017336b19afc045e8a7385999c1896d4b45 (patch) | |
tree | 6aa36590c694c6b2661243061e7dfb87f6ac23c8 /libavcodec/mpcdata.h | |
parent | b84211ac71ebed8ed0d8e3db26557f41f4a21e81 (diff) | |
download | ffmpeg-b2a7c017336b19afc045e8a7385999c1896d4b45.tar.gz |
mpc: Fix mpc_CC table and use.
This is based on the reference implementation and fixes
a global out of array read.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpcdata.h')
-rw-r--r-- | libavcodec/mpcdata.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpcdata.h b/libavcodec/mpcdata.h index 6538153f2a..b9bc423be8 100644 --- a/libavcodec/mpcdata.h +++ b/libavcodec/mpcdata.h @@ -22,7 +22,8 @@ #ifndef AVCODEC_MPCDATA_H #define AVCODEC_MPCDATA_H -static const float mpc_CC[18] = { +static const float mpc_CC[1+18] = { + 111.285962475327f, 65536.0000, 21845.3333, 13107.2000, 9362.2857, 7281.7778, 4369.0667, 2114.0645, 1040.2539, 516.0315, 257.0039, 128.2505, 64.0626, 32.0156, 16.0039, 8.0010, 4.0002, 2.0001, 1.0000 |