libfreerdp-codec: add support for passing pointer to beginning of buffer for RemoteFX encoding