From da3ad0e0600a9abdee154b3a99b8ba71af56685b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 9 Nov 2018 00:15:43 +0100 Subject: [PATCH] Unbreak 8-bit fake inputs. --- fake_capture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fake_capture.cpp b/fake_capture.cpp index d8f5144..072864f 100644 --- a/fake_capture.cpp +++ b/fake_capture.cpp @@ -302,10 +302,10 @@ void FakeCapture::producer_thread_func() memset2(video_frame.data, cbcr, width * height / 2); memset(video_frame.data2, y, width * height); } else { - fill_color_noninterleaved(video_frame.data, y, cb, cr, video_format, current_pixel_format); + fill_color_noninterleaved(video_frame.data, y, cb, cr, video_format, current_pixel_format == PixelFormat_10BitYCbCr); } if (video_frame.data_copy != nullptr) { - fill_color_noninterleaved(video_frame.data_copy, y, cb, cr, video_format, current_pixel_format); + fill_color_noninterleaved(video_frame.data_copy, y, cb, cr, video_format, current_pixel_format == PixelFormat_10BitYCbCr); } video_frame.len = video_format.stride * height; video_frame.received_timestamp = timestamp; -- 2.39.2