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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit88e5a30cf8351c313e52f8b1f75aa18f2912e5c6
treec55e71351dfc51a4ea9621d11f1b942f612a449e
parent9505b285385e96cd25cfd9d57bc499b0914d43ce
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