Repository navigation
[FIX] Write the clearing cue after SAMI credits - #2474
harshalsp07 wants to merge 1 commit into
Conversation
cfsmp3
left a comment
There was a problem hiding this comment.
This is Carlos' claude doing the first pass. Before Carlos takes a look, please address these issues.
The one-line fix is right. On master the credits end with </P></SYNC> twice. With this branch the <SYNC start=3500> clearing cue is written. The other write_stringz_as_* writers already encode before writing, so SAMI was the only one affected.
Please remove the CTest/Python additions (src/CMakeLists.txt block, tests/test_cli_sami_credits.py, tests/samples/cli_output.scc):
- Nothing defines
BUILD_TESTING(noinclude(CTest)/enable_testing()), and CI doesn't runctest, so the block never runs. - In this PR the block loops over
CLI_OUTPUT_TESTS, which is never set (thefile(GLOB …)line is only in #2472 and #2473), so it would register nothing even with CTest enabled. - The same
tests/samples/cli_output.sccis added in #2472, #2473 and here, so the three PRs conflict with each other.
Adding a CLI test harness is a separate decision. Please keep this PR to the fix.
dbbb753 to
acb69d3
Compare
acb69d3 to
81d9b33
Compare
CCExtractor CI platform finished running the test files on linux. 171/238 tests matched the approved output:
67 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 10124, commit 034fdbc:
Compared with the commit this branch was cut from: the same run as the tip of master (test 10124), so the comparison above already covers it. No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
CCExtractor CI platform finished running the test files on windows. 171/238 tests matched the approved output:
67 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 10125, commit 034fdbc:
Compared with the commit this branch was cut from: the same run as the tip of master (test 10125), so the comparison above already covers it. No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
In raising this pull request, I confirm the following (please check boxes):
Reason for this PR:
Sanity check:
SAMI start credits end with a duplicate
</P></SYNC>because the encoder writes the previous buffer. Encode the timed clearing cue before writing it.Reproduce with the existing SCC fixture. Sample
build/ccextractor tests/samples/scc_23_976.scc --sami \ --startcreditstext 'Example credits' \ --startcreditsforatleast 1 --startcreditsforatmost 2 -o output.smiThe blank cue at 1400 ms clears the credits before the first caption.
On Linux, the UTF-8, Latin-1, and UTF-16 regression cases all passed. All three reproduced the missing cue on master.