On a functional inequality arising in the analysis of finite-volume methods