diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-04-26 11:41:00 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-04-26 11:41:00 +0000 |
commit | 30579b7ef01382845a9af03b2dd5ac6689c139d4 (patch) | |
tree | bef0a364d681fdf4be51daa2af411b280ac599bd /libavcodec/dcaenc.c | |
parent | 6a8d05061f9f1f2bafa7c350f051915877c5c2d3 (diff) | |
download | ffmpeg-30579b7ef01382845a9af03b2dd5ac6689c139d4.tar.gz |
dcaenc: silence address sanitizer warning
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/dcaenc.c')
-rw-r--r-- | libavcodec/dcaenc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/dcaenc.c b/libavcodec/dcaenc.c index d2862b19d7..439be476d3 100644 --- a/libavcodec/dcaenc.c +++ b/libavcodec/dcaenc.c @@ -168,8 +168,13 @@ static int encode_init(AVCodecContext *avctx) cb_to_level[i] = (int32_t)(0x7fffffff * pow(10, -0.005 * i)); } + /* FIXME: probably incorrect */ + for (i = 0; i < 256; i++) { + lfe_fir_64i[i] = (int32_t)(0x01ffffff * lfe_fir_64[i]); + lfe_fir_64i[511 - i] = (int32_t)(0x01ffffff * lfe_fir_64[i]); + } + for (i = 0; i < 512; i++) { - lfe_fir_64i[i] = (int32_t)(0x01ffffff * lfe_fir_64[i]); band_interpolation[0][i] = (int32_t)(0x1000000000ULL * fir_32bands_perfect[i]); band_interpolation[1][i] = (int32_t)(0x1000000000ULL * fir_32bands_nonperfect[i]); } |