libfreerdp-codec: got planar encoder to work 100% correctly