diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-18 21:51:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-18 21:51:04 +0200 |
commit | c753b56b4d56724284dd7ed972efdb843db80f12 (patch) | |
tree | 5c8420d908b13076876181c1b8feb32c1b269723 /libavcodec | |
parent | 5537c92f84db5f10a853c0b974bc5223252114f4 (diff) | |
download | ffmpeg-c753b56b4d56724284dd7ed972efdb843db80f12.tar.gz |
ff_convert_matrix: fix integer overflow
Fixes CID608053
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 32e1772cf3..d77707215a 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -103,7 +103,7 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], * 3444240 >= (1 << 36) / (x) >= 275 */ qmat[qscale][i] = (int)((UINT64_C(1) << (QMAT_SHIFT + 14)) / - (ff_aanscales[i] * qscale * quant_matrix[j])); + (ff_aanscales[i] * (int64_t)qscale * quant_matrix[j])); } } else { for (i = 0; i < 64; i++) { |