Skip to content

Commit

Permalink
[FIX] Unexpected behavior of get_write_interval (#1609)
Browse files Browse the repository at this point in the history
* fix: Unexpected behavior of get_write_interval

Adresses Issue#1606

* docs: Add changes to `CHANGES.TXT`
  • Loading branch information
IshanGrover2004 authored May 24, 2024
1 parent 3f50441 commit 5748042
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGES.TXT
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.95 (to be released)
-----------------
- Fix: Unexpected behavior of get_write_interval (#1609)
- Update: Bump rsmpeg to latest version for ffmpeg bindings (#1600)
- New: Add SCC support for CEA-708 decoder (#1595)
- Fix: respect `-stdout` even if multiple CC tracks are present in a Matroska input file (#1453)
Expand Down
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 5748042

Please sign in to comment.