paf: avoid using expressions with sideeffects in AV_R*