#3861·xrdp

Wrong color rendered using Microsoft Windows App for macOS. (H.264, OpenH264)

Author: bho3538Created Aug 28, 2026Updated Aug 28, 2026
Labelsbug

xrdp version

0.10.x

Detailed xrdp version, build options

xrdp 0.10.6.1
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2026 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-openh264

  Compiled with OpenSSL 3.0.13 30 Jan 2024

Operating system & version

Ubuntu 24.04

Installation method

other

Which backend do you use?

xorgxrdp

What desktop environment do you use?

any

Environment xrdp running on

VM (Hyper-V)

What's your client?

Microsoft official client from AppStore. running on macOS 26

Area(s) with issue?

Other

Steps to reproduce

  1. set xrdp server and enable h.264 mode.
  2. connect server using 'Windows App' on macOS. (Microsoft official client from AppStore)

✔️ Expected Behavior

Color accuracy must be precise, just like with mstsc.

❌ Actual Behavior

Unlike mstsc or the host, the color is inaccurate.

Anything else?

XRDP uses the nv12 full-range format from H.264. However, some flags are missing when initializing the OpenH264 encoder; although the actual data is full-range color data, the H.264 SPS does not contain this information.

While most clients do not experience this issue, the official Microsoft app for macOS ('Windows App') appears to misinterpret this, viewing the colors as video-range. This results in color inconsistencies.

I added two lines of code for testing, and it seems this modification resolved the issue. (Include some information in SPS header) (files : xrdp_encoder_openh264.c)

Image

The following is the result.

  • Original Image (VM host)
ImageImage
  • When using macOS app (Windows App)
Image Image

--> The dark and bright parts look different.

Image Image

--> In the pre-modification xrdp, black is barely distinguishable.

  • When using mstsc (no problem)
Image ImageImage Image

I am not sure if this is an intentional implementation or if this modification has other effects. Could you confirm if this is an issue with xrdp?