libfreerdp-codec: fix automatic growing of the encode stream size