avcodec/ffwavesynth: More correct cast in wavesynth_seek()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 Jul 2019 22:35:48 +0000 (00:35 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Jul 2019 17:05:02 +0000 (19:05 +0200)
commitf4605770af712dd9d7b0136fe298f8aa52101011
tree8bbbcd2820bd91524fc72f31d8987c5ff68c988a
parentc95857a4237d7a0c55378a44f51d2d809f3bc8f5
avcodec/ffwavesynth: More correct cast in wavesynth_seek()

Fixes: signed integer overflow: 553590816 - -9223372036315799520 cannot be represented in type 'long'
Fixes: 15743/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5705835377852416

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