aboutsummaryrefslogtreecommitdiff
path: root/video/bink_decoder.h
diff options
context:
space:
mode:
authorBastien Bouclet2019-04-01 20:41:56 +0200
committerBastien Bouclet2019-04-01 20:49:45 +0200
commit195b4cbd207f20c193d86cc28aaeebca596955cf (patch)
tree8384e24dc3b053d564107d4000c8b4f5d17520b4 /video/bink_decoder.h
parent280a4f2d911d10f8199a88805fae6966ac00f44b (diff)
downloadscummvm-rg350-195b4cbd207f20c193d86cc28aaeebca596955cf.tar.gz
scummvm-rg350-195b4cbd207f20c193d86cc28aaeebca596955cf.tar.bz2
scummvm-rg350-195b4cbd207f20c193d86cc28aaeebca596955cf.zip
VIDEO: Fix an integer overflow when dequantizing the DCT coeffs
See https://github.com/FFmpeg/FFmpeg/commit/2968bedf129558024ea87a1aabc4aa2d3a5bcb6e
Diffstat (limited to 'video/bink_decoder.h')
-rw-r--r--video/bink_decoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/bink_decoder.h b/video/bink_decoder.h
index 68dd994115..29d16020b1 100644
--- a/video/bink_decoder.h
+++ b/video/bink_decoder.h
@@ -314,13 +314,13 @@ private:
void readPatterns (VideoFrame &video, Bundle &bundle);
void readColors (VideoFrame &video, Bundle &bundle);
void readDCS (VideoFrame &video, Bundle &bundle, int startBits, bool hasSign);
- void readDCTCoeffs (VideoFrame &video, int16 *block, bool isIntra);
+ void readDCTCoeffs (VideoFrame &video, int32 *block, bool isIntra);
void readResidue (VideoFrame &video, int16 *block, int masksCount);
// Bink video IDCT
- void IDCT(int16 *block);
- void IDCTPut(DecodeContext &ctx, int16 *block);
- void IDCTAdd(DecodeContext &ctx, int16 *block);
+ void IDCT(int32 *block);
+ void IDCTPut(DecodeContext &ctx, int32 *block);
+ void IDCTAdd(DecodeContext &ctx, int32 *block);
};
class BinkAudioTrack : public AudioTrack {