avcodec/diracdec: Use 64bit in intermediate of global motion vector field generation
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Apr 2019 14:44:53 +0000 (16:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Apr 2019 22:54:06 +0000 (00:54 +0200)
commit49881ea3431b0d48fc9889a848b21c1c71d02263
treeed25dcd0820f9ae3878e9b8d5449ae489ec72fba
parent5f7ab544b3869821bdacc8e7339a03e97ca7dec7
avcodec/diracdec: Use 64bit in intermediate of global motion vector field generation

It seems the specification does not limit the value to 32bit

Fixes: signed integer overflow: -109611143 * 24 cannot be represented in type 'int'
Fixes: 13477/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5648337460527104

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 837820f385af699f9bee5e2ba3169dda15e5894d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c