Skip to content

Commit

Permalink
fix: decklink subregion vertical height limit on mixed formats #1538
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed May 30, 2024
1 parent 268c0e8 commit bdcfef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/decklink/consumer/frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdcfef0

Please sign in to comment.