avcodec/g2meet: Change order of operations to avoid undefined behavior
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 May 2018 16:16:08 +0000 (18:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Jun 2018 23:16:04 +0000 (01:16 +0200)
commit2cb3dff0f938ff27cc9b3c79bd9446d42a797746
treea46ca5f13e914e6bf35086d462393754dfbbad3d
parent5d1c783bf02796ce50bfdcf6d1ad52c31c2f585a
avcodec/g2meet: Change order of operations to avoid undefined behavior

Fixes: signed integer overflow: 65280 * 196032 cannot be represented in type 'int'
Fixes: 7279/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5977332473921536

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0a4745145840d97619c424961c1b5c625dbf516c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/g2meet.c