mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-03 10:13:47 +00:00
cea608overlay: fix rendering when roll up base row is at the top
We were ensuring that the base row was one too large for the number of roll up rows and causing the first row to unable to be written to. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1985>
This commit is contained in:
parent
7d4ddc7eb9
commit
b367b38633
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ impl Cea608Frame {
|
|||
self.row = preamble.row() as usize;
|
||||
}
|
||||
Mode::RollUp2 | Mode::RollUp3 | Mode::RollUp4 => {
|
||||
let base_row = preamble.row().max(mode.rollup_rows().unwrap_or(0));
|
||||
let base_row = preamble.row().max(mode.rollup_rows().unwrap_or(0) - 1);
|
||||
if self.base_row != base_row {
|
||||
gst::debug!(
|
||||
CAT,
|
||||
|
|
Loading…
Reference in a new issue