From bdcfef0e8aa68269a85e21feb56cae85fde1789b Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Thu, 30 May 2024 14:59:19 +0100 Subject: [PATCH] fix: decklink subregion vertical height limit on mixed formats #1538 --- src/modules/decklink/consumer/frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/decklink/consumer/frame.cpp b/src/modules/decklink/consumer/frame.cpp index 26ce8a9f32..1fa58f7662 100644 --- a/src/modules/decklink/consumer/frame.cpp +++ b/src/modules/decklink/consumer/frame.cpp @@ -84,7 +84,7 @@ void convert_frame(const core::video_format_desc& channel_format_desc, if (config.region_h > 0) // If the user chose a height, respect that copy_line_count = std::min(copy_line_count, config.region_h); - int max_y_content = std::min(y_skip_dest_lines + copy_line_count, channel_format_desc.height); + int max_y_content = y_skip_dest_lines + std::min(copy_line_count, channel_format_desc.height); for (int y = firstLine; y < y_skip_dest_lines; y += decklink_format_desc.field_count) { // Fill the line with black