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>
Tue, 20 Jun 2017 00:05:09 +0000 (02:05 +0200)
commita5feb7e9bd4742f3790e7cff691164899bc0e5c9
tree148589e0d52beed942277ecf390890c3d37be206
parent23d02b44655774de30aaead4ec5237f281ecbaea
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>
(cherry picked from commit 3c716682a8b69e6644a385a663aaf0e5dc808ae8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c