]> git.sesse.net Git - nageru/commitdiff
Fix an issue where 1080i inputs would be autodetected as Rec. 601.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 5 May 2018 17:25:57 +0000 (19:25 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 5 May 2018 17:25:57 +0000 (19:25 +0200)
theme.cpp

index cea91726e7dfa0730fc6ea17a6d5d156f1f5cc63..55088ef8bf3c01100ff9665c3225ed691c645909 100644 (file)
--- 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];