libfreerdp-codec: simplify zgfx segment processing