]> git.sesse.net Git - nageru/blobdiff - nageru/decklink_output.cpp
Fix a bug; 60.00 fps would never be autoselected for output. (Then again, 59.97 shoul...
[nageru] / nageru / decklink_output.cpp
index 29cb3a816d1fb99bac47d8aeb3ddb78fca584365..3dd5243c5998b5a8c2b5efb747366d4dc9652ce4 100644 (file)
@@ -439,7 +439,7 @@ uint32_t DeckLinkOutput::pick_video_mode(uint32_t mode) const
        }
 
        // Prioritize 59.94 > 60 > 29.97. If none of those are found, then pick the highest one.
-       for (const pair<int, int> &desired : vector<pair<int, int>>{ { 60000, 1001 }, { 60, 0 }, { 30000, 1001 } }) {
+       for (const pair<int, int> &desired : vector<pair<int, int>>{ { 60000, 1001 }, { 60, 1 }, { 30000, 1001 } }) {
                for (const auto &it : video_modes) {
                        if (it.second.frame_rate_num * desired.second == desired.first * it.second.frame_rate_den) {
                                return it.first;