Skip to content

Commit 9074cc9

Browse files
Handle row_count decrease
1 parent 407d0f4 commit 9074cc9

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,18 @@ 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+
{
1051+
if (row_count < window->row_count)
1052+
{
1053+
// Remove the oldest row if the row count is reduced
1054+
for(int i = row_count; i < window->row_count; i++)
1055+
{
1056+
dtvcc_window_rollup(decoder, window);
1057+
}
1058+
}
1059+
}
1060+
10491061
window->priority = priority;
10501062
window->col_lock = col_lock;
10511063
window->row_lock = row_lock;

0 commit comments

Comments
 (0)