ffmpeg: do not use a negative total_size (AVERROR) in bitrate estimation.