From a75d06ff3d56a34f98b2d41edd3050fb21e7f944 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 5 May 2018 19:25:57 +0200 Subject: [PATCH] Fix an issue where 1080i inputs would be autodetected as Rec. 601. --- theme.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/theme.cpp b/theme.cpp index cea9172..55088ef 100644 --- a/theme.cpp +++ b/theme.cpp @@ -1007,6 +1007,9 @@ void LiveInputWrapper::connect_signal_raw(int signal_num, const InputState &inpu const PBOFrameAllocator::Userdata *userdata = (const PBOFrameAllocator::Userdata *)first_frame.frame->userdata; width = userdata->last_width[first_frame.field_number]; height = userdata->last_height[first_frame.field_number]; + if (userdata->last_interlaced) { + height *= 2; + } } movit::YCbCrLumaCoefficients ycbcr_coefficients = input_state.ycbcr_coefficients[signal_num]; -- 2.39.2