[fix] select the correct X11 pixel format conversion to prevent green-tinted screen capture on ubuntu

This commit is contained in:
dijunkun
2026-04-27 17:57:11 +08:00
parent 37b9badb2a
commit 71bce08549
2 changed files with 35 additions and 24 deletions
@@ -71,6 +71,7 @@ class ScreenCapturerX11 : public ScreenCapturer {
cb_desktop_data callback_;
std::vector<DisplayInfo> display_info_list_;
int capture_error_count_ = 0;
bool use_abgr_to_nv12_ = false;
std::vector<uint8_t> y_plane_;
std::vector<uint8_t> uv_plane_;