diff --git a/src/server.c b/src/server.c index c445253..c64e6ba 100644 --- a/src/server.c +++ b/src/server.c @@ -694,6 +694,11 @@ void do_client_update_fb(uv_work_t* work) return; } + if (client->fourcc == DRM_FORMAT_INVALID) { + rfb_pixfmt_from_fourcc(&client->pixfmt, fb->fourcc_format); + client->fourcc = fb->fourcc_format; + } + switch (encoding) { case RFB_ENCODING_RAW: raw_encode_frame(&update->frame, &client->pixfmt, fb,