From d0c22169295046a4bb164a6898a107c7ca6155cc Mon Sep 17 00:00:00 2001 From: Jan Herling Date: Wed, 30 Oct 2024 13:55:26 -0700 Subject: [PATCH] Minor fix in variance demo app Summary: Just using the correct frame. Reviewed By: enpe Differential Revision: D65226220 Privacy Context Container: L1191897 fbshipit-source-id: a6f802748e2f9e19751991b74387d9a43ba3d1e8 --- .../ocean/demo/cv/variance/win/VarianceMainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/application/ocean/demo/cv/variance/win/VarianceMainWindow.cpp b/impl/application/ocean/demo/cv/variance/win/VarianceMainWindow.cpp index 57c756643..3c5ede694 100644 --- a/impl/application/ocean/demo/cv/variance/win/VarianceMainWindow.cpp +++ b/impl/application/ocean/demo/cv/variance/win/VarianceMainWindow.cpp @@ -117,7 +117,7 @@ void VarianceMainWindow::onFrame(const Frame& frame) } Frames separatedFrames; - if (!CV::FrameChannels::Comfort::separateTo1Channel(frame, separatedFrames, FrameType::FORMAT_Y8) || separatedFrames.size() != 3) + if (!CV::FrameChannels::Comfort::separateTo1Channel(yuvFrame, separatedFrames, FrameType::FORMAT_Y8) || separatedFrames.size() != 3) { ocean_assert(false && "This should never happen!"); return;