From: Steinar H. Gunderson Date: Thu, 8 Nov 2018 23:15:43 +0000 (+0100) Subject: Unbreak 8-bit fake inputs. X-Git-Tag: 0.7.3~2 X-Git-Url: https://git.sesse.net/?p=bmusb;a=commitdiff_plain;h=da3ad0e0600a9abdee154b3a99b8ba71af56685b Unbreak 8-bit fake inputs. --- 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;