We prove that a locally integrable function f:(a,b)→R must be affine if its mean oscillation, considered as a function of intervals, can be extended to a locally finite Borel measure. In particular, we show that any function f satisfying the integro-differential identity ∣Df∣(I)=4osc(f,I) for all intervals Iubset(a,b) must be affine.