support changing in bitstream global headers into extradata style and back