From: Steinar H. Gunderson Date: Sat, 5 May 2018 17:25:57 +0000 (+0200) Subject: Fix an issue where 1080i inputs would be autodetected as Rec. 601. X-Git-Tag: 1.7.3~7 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=a75d06ff3d56a34f98b2d41edd3050fb21e7f944 Fix an issue where 1080i inputs would be autodetected as Rec. 601. --- 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];