Repository navigation
A seek drops the packets the repair verdict left held (#409 follow-up) - #415
Merged
Merged
Conversation
The composition-offset repair settles its verdict by reading ahead and HOLDING what it read, so the container's own order survives the decision. `noteSeek()` dropped that queue only while the sample was still open. A verdict that has already landed leaves its sample in the queue, and `dequeue()` hands the queue out ahead of anything read after the seek, so the abandoned position's packets are re-served at the landing. Measured on a healthy MP4 with B-frames (verdict `.off`, sample still held): after `decideCompositionOffsetRepair()` plus a seek, the reader delivered the first twelve packets a second time before the landing's own. Every consumer of the demuxer sees it, and `Issue259A53CaptionAxisTests` has been failing on main since 261d310 with exactly that shape, two duplicate A/53 observations mid stream (green on 7ba4237, the commit before the merge). The queue is dropped in every phase now; the phase-specific state resets keep their own branches. #409's own verification could not see this: it compared the repaired arm against its healthy twin, and both arms carry the same held queue, so both were wrong in the same way. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01RbWZLwBVLGM1xUVXa9NeJ1
This was referenced Aug 25, 2026
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a regression
261d310aput onmain:Issue259A53CaptionAxisTestsfails onmain(f08db21d) and passes on7ba42377, the commit before the #409 merge.The defect
The composition-offset repair settles its verdict by reading ahead and HOLDING what it read, so the container's own order survives the decision.
noteSeek()dropped that queue only in the.samplingphase:A settled verdict leaves the sample it read in the queue (a healthy file decides
.offwhile still holding it), anddequeue()hands that queue out ahead of anything read after a seek. So the abandoned position's packets are re-served at the landing.Measured on a healthy MP4 with B-frames: after
decideCompositionOffsetRepair()plusseek(to: 1.0), the reader deliversagainst a reference arm that never sampled. Every consumer of the demuxer sees it: the fMP4 producer, the segment plan, the software decoder, the still extractor.
Why #409's verification did not catch it
It compared the repaired arm against its healthy twin, packet for packet. Both arms carry the same held queue, so both were wrong in the same way and the comparison stayed green. The A/53 axis test is the one that compares against the container instead, and it went red.
Tests
Two pins, both fixture-gated like the rest of the repair suite: the landing after a seek must match a reference demuxer that never sampled (fails without the fix, with the twelve-packet repeat above), and deciding the verdict without a seek must still cost no packet (guards the opposite mutation, dropping the queue unconditionally).
Suite 2028/2028 green.
🤖 Generated with Claude Code
https://claude.ai/code/session_01RbWZLwBVLGM1xUVXa9NeJ1