Skip to content

[FIX] Preserve the final SCC and CCD frame at fractional rates - #2526

Open
Pranjul-00 wants to merge 1 commit into
CCExtractor:masterfrom
Pranjul-00:fix/scc-final-frame
Open

Pranjul-00 wants to merge 1 commit into
CCExtractor:masterfrom
Pranjul-00:fix/scc-final-frame

Conversation

@Pranjul-00

Copy link
Copy Markdown

Fixes #2525.

The SCC and CCD writer calculates frame 29 at the end of a second at 29.97 fps, then clamps it to 28. The same check clamps 23 to 22 at 23.976 fps. Rounding the frame count up gives the correct upper limit at both rates.

Reproduction

From the repository root, use the existing SCC sample:

ccextractor --scc-framerate 29.97 --delay 590 --out=scc tests/samples/scc_23_976.scc -o result.scc

On upstream commit 2c1c1c6f, the first timestamp is 00:00:01:28. With the fix it is 00:00:01:29. The new CTest checks the first timestamp for SCC and CCD at all five supported rates. Both CTest targets passed locally on Linux.

Reason for this PR

  • Fixes a reproduced bug with a sample.

Sanity check

  • Read the contributor guide.
  • Checked existing PRs for the same fix.
  • Bug fix with no changelog entry.
  • C change fixes an existing, reproducible bug.

@ccextractor-bot

Copy link
Copy Markdown
Collaborator
CCExtractor CI platform finished running the test files on linux. 171/238 tests matched the approved output:
Report Name Tests Passed
Broken 9/13
CEA-708 2/14
DVB 0/7
DVD 3/3
DVR-MS 2/2
General 26/28
Hardsubx 1/1
Hauppage 3/3
MP4 3/3
NoCC 10/10
Options 68/86
Teletext 0/21
WTV 12/13
XDS 32/34

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 10180, commit 2c1c1c6:

  • 0 pass there and fail here
  • 0 fail there and pass here
  • 0 fail on both, with different output
  • 67 fail on both, byte for byte the same

Compared with the commit this branch was cut from: the same run as the tip of master (test 10180), 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-bot

Copy link
Copy Markdown
Collaborator
CCExtractor CI platform finished running the test files on windows. 171/238 tests matched the approved output:
Report Name Tests Passed
Broken 9/13
CEA-708 2/14
DVB 0/7
DVD 3/3
DVR-MS 2/2
General 26/28
Hardsubx 1/1
Hauppage 3/3
MP4 3/3
NoCC 10/10
Options 68/86
Teletext 0/21
WTV 12/13
XDS 32/34

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 10179, commit f56427e:

  • 0 pass there and fail here
  • 0 fail there and pass here
  • 0 fail on both, with different output
  • 67 fail on both, byte for byte the same

Compared with the commit this branch was cut from — test 10181, commit 2c1c1c6:

  • 0 pass there and fail here
  • 0 fail there and pass here
  • 0 fail on both, with different output
  • 67 fail on both, byte for byte the same

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] SCC and CCD output skip the final frame number at 29.97 and 23.976 fps

2 participants