From 5aeec836823ca11d4e7eae67124edb299e0fd8b0 Mon Sep 17 00:00:00 2001 From: Pinterf Date: Tue, 23 Feb 2021 15:28:20 +0100 Subject: [PATCH] Fix Y8 in PlanarFrames --- src/TIVTC/PlanarFrame.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TIVTC/PlanarFrame.cpp b/src/TIVTC/PlanarFrame.cpp index 340cd82..8e4f77b 100644 --- a/src/TIVTC/PlanarFrame.cpp +++ b/src/TIVTC/PlanarFrame.cpp @@ -26,6 +26,7 @@ #include #include +// 8 bits only!!! PlanarFrame::PlanarFrame(int cpuFlags) { @@ -191,8 +192,8 @@ void PlanarFrame::createPlanar(int height, int width, int chroma_format) } else if (chroma_format == PLANAR_400) // greyscale { - specs[0] = height; specs[1] = height; - specs[2] = 0; specs[3] = 0; + specs[0] = height; specs[1] = 0; + specs[2] = width; specs[3] = 0; } allocSpace(specs); }