hevc: split bitstream unescaping to a separate file