av_rescale: support passing MIN/MAX through