avcodec/truemotion2: Move skip computation after checks
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Jun 2017 21:41:46 +0000 (23:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Jun 2017 22:21:30 +0000 (00:21 +0200)
commit3c716682a8b69e6644a385a663aaf0e5dc808ae8
treee22bf104a7cb0936b2ee69ca3ef858e1d15c2f7c
parente3fadc57c5c170f31455abacbcbd67115d7321d7
avcodec/truemotion2: Move skip computation after checks

Fixes: runtime error: signed integer overflow: 630067357 * 4 cannot be represented in type 'int'
Fixes: 2233/clusterfuzz-testcase-minimized-5943031318446080

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c