avcodec/ffwavesynth: Simplify lcg_seek(), avoid negative case
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Jun 2019 20:41:25 +0000 (22:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 06:57:40 +0000 (08:57 +0200)
commit8c022099351c04ae21e0b8696ea71a690ed03cd2
tree6d01f7a2e0b32b370e227c5c4603099e201a6e6e
parentcf2bd3ce79b12256d7d129b2ada5ee649b9a27eb
avcodec/ffwavesynth: Simplify lcg_seek(), avoid negative case

Fixes: negation of -9223372036854775808 cannot be represented in type 'int64_t' (aka 'long'); cast to an unsigned type to negate this value to itself
Fixes: 15289/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5709034499342336

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