Use saturate_cast when converting from YV12 to RGB to prevent overflow errors.