Skip to content

Commit

Permalink
fix: Unexpected behavior of get_write_interval
Browse files Browse the repository at this point in the history
Adresses Issue#1606
  • Loading branch information
IshanGrover2004 committed May 11, 2024
1 parent 3f50441 commit 2d13ede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rust/src/decoder/tv_screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ impl dtvcc_tv_screen {
/// Returns the bounds in which captions are present
pub fn get_write_interval(&self, row_index: usize) -> (usize, usize) {
let mut first = 0;
let mut last = CCX_DTVCC_SCREENGRID_COLUMNS as usize - 1;
let mut last = 0;

for col in 0..CCX_DTVCC_SCREENGRID_COLUMNS as usize {
if self.chars[row_index][col].is_set() {
first = col;
Expand Down

0 comments on commit 2d13ede

Please sign in to comment.