avformat/rpl: Use 64bit in bitrate computation and check it
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 26 Apr 2021 20:43:51 +0000 (22:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit5664263561ecd8e2781432bdf99322c7fa195b00
tree02810fb0439a4e7a92e100f736d4b3be7304aefa
parent78b71acab71842317b462786aa26767de9f777f3
avformat/rpl: Use 64bit in bitrate computation and check it

Fixes: signed integer overflow: 777777776 * 4 cannot be represented in type 'int'
Fixes: 29102/clusterfuzz-testcase-minimized-ffmpeg_dem_RPL_fuzzer-6726188921913344

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 29b244ffc15abe2c24d2145f63048e8b3bdaa303)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rpl.c