]> git.sesse.net Git - nageru/commitdiff
Default to SMPTE Level A if possible; Level B is uncommon and has problems with at...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 8 Feb 2017 21:05:44 +0000 (22:05 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 8 Feb 2017 21:05:52 +0000 (22:05 +0100)
decklink_output.cpp

index 55d29c5aad38c8d5be43f30ef677a2c9bb9ef032..39b2cd09f2b270640306eb7c95e5419596ff5b8c 100644 (file)
@@ -88,6 +88,11 @@ void DeckLinkOutput::start_output(uint32_t mode, int64_t base_pts)
                fprintf(stderr, "Failed to set PsF flag for card\n");
                exit(1);
        }
+       if (config->SetFlag(bmdDeckLinkConfigSMPTELevelAOutput, true) != S_OK) {
+               // This affects at least some no-name SDI->HDMI converters.
+               // Warn, but don't die.
+               fprintf(stderr, "WARNING: Failed to enable SMTPE Level A; resolutions like 1080p60 might have issues.\n");
+       }
 
        BMDDisplayModeSupport support;
        IDeckLinkDisplayMode *display_mode;