-
Notifications
You must be signed in to change notification settings - Fork 475
[FIX] Handle row_count decrease #1702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
LGTM, but be aware that since we are migrating to Rust it's possible this change gets lost if not ported. |
Hi, can you please rebase so we could check the regression tests. |
CCExtractor CI platform finished running the test files on linux. Below is a summary of the test results, when compared to test for commit 39e051b...:
NOTE: The following tests have been failing on the master branch as well as the PR:
All tests passing on the master branch were passed completely. Check the result page for more info. |
if (window->is_defined) | ||
{ | ||
if (row_count < window->row_count) | ||
{ | ||
// Remove the oldest row if the row count is reduced | ||
for (int i = row_count; i < window->row_count; i++) | ||
{ | ||
dtvcc_window_rollup(decoder, window); | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible for you to change it to single if instead like:
if (window->is_defined && row_count <...) {
for (...
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! If you can resolve comment then fine, otherwise we can merge as is.
CCExtractor CI platform finished running the test files on windows. Below is a summary of the test results, when compared to test for commit a34ba0f...:
Your PR breaks these cases:
NOTE: The following tests have been failing on the master branch as well as the PR:
It seems that not all tests were passed completely. This is an indication that the output of some files is not as expected (but might be according to you). Check the result page for more info. |
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
We found ccextractor cannot handle row_count decreasing well. When row count decreases, the upper row should be displaced while the bottom row should be kept.
Before the fix, the srt is like this:
After the fix, the srt is like this:
The cea708 log of the original ccExtractor is included here:
708.log
The cea708 log of the fixed ccExtractor is included here:
new_708.log
Expected captions:

