avcodec/wavpack: Check bitrate_acc for overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 3 Mar 2017 19:12:21 +0000 (20:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Mar 2017 11:01:46 +0000 (12:01 +0100)
commitd03d38616278bf209e6c860d8f9f564cbc6c1780
tree1681b79f9222713cd5d750b665e9d2acf7824d02
parentfab13bbbcdf92da165f1a6be94fbb8f87fac639a
avcodec/wavpack: Check bitrate_acc for overflow

Fixes: undefined behavior in 717/clusterfuzz-testcase-5434924129583104

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