lavf: avoid integer overflow when estimating bitrate