Skip to content

Commit 22d1817

Browse files
Handle row_count decrease
1 parent 407d0f4 commit 22d1817

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/CHANGES.TXT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
- Fix: Resolve compile-time error about implicit declarations (#1646)
4242
- Fix: fatal out of memory error extracting from a VOB PS
4343
- Fix: Unit Test Rust failing due to changes in Rust Version 1.86.0
44+
- Fix: handle row_count decrease in CEA-708 C decoder
4445

4546
0.94 (2021-12-14)
4647
-----------------

src/lib_ccx/ccx_decoders_708.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,15 @@ void dtvcc_handle_DFx_DefineWindow(dtvcc_service_decoder *decoder, int window_id
10461046
if (anchor_horizontal > CCX_DTVCC_SCREENGRID_COLUMNS - col_count)
10471047
anchor_horizontal = CCX_DTVCC_SCREENGRID_COLUMNS - col_count;
10481048

1049+
if (window->is_defined) {
1050+
if (row_count < window->row_count) {
1051+
// Remove the oldest row if the row count is reduced
1052+
for(int i=row_count; i<window->row_count; i++){
1053+
dtvcc_window_rollup(decoder, window);
1054+
}
1055+
}
1056+
}
1057+
10491058
window->priority = priority;
10501059
window->col_lock = col_lock;
10511060
window->row_lock = row_lock;

0 commit comments

Comments
 (0)