Repository navigation
Conversation
Producer::seek left the bitrate measurement at the last frame's timestamp, so five-packet audio groups a seek closed advertised a quarter more than they carry. It now measures as an unbounded cut does, data tracks excepted. Found by CodeRabbit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Producer::seekclosed its group with no measured end, so the bitrate estimator measured the group only to its last frame's timestamp. Five 20 ms, 250-byte audio packets closed by a seek advertised 125 kb/s instead of 100 kb/s. Seeks close a group at every FLV, MKV, or HLS import seek. moq-dev/moq#9561 fixed the same overcount for an unboundedcut, and CodeRabbit found thatseekstill had it (thread).Changes
Producer::seekmeasures a media group to its estimated end (capped at the seek), as an unboundedcut(None)does. Data tracks still pass none, since their items have no cadence.Impact
Public API: none. Wire: none.
Behavior: the catalog bitrate of a track whose groups seeks close drops to what it carries (by a quarter for five-packet audio groups).
Caused by
No single PR caused this:
seekmeasured to the last frame before moq-dev/moq#9561, which fixed onlycut.Validation
seeks_measure_the_last_frame(40 groups of five 20 ms packets, each closed by a seek 100 ms past its end) reports 125000 b/s without the fix and 100000 with it.just checkpasses.Models
Size: XS
Implementer: Claude Code, claude-opus-5-5, unknown effort
(Written by Claude Opus 5.5)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: d10f84c
Base: origin/main at f3315bb
Risk: medium,
The change is a bug fix in the shipped moq-mux crate, where a seek now measures the group it closes to its estimated end, changing the bitrate estimate that producers advertise for non-data containers; it keeps the public API and wire format, so nothing breaks for consumers and a revert fully undoes it, so the worst case is a wrong bitrate estimate reaching relays and subscribers from the next release until it is reverted.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
5ac152d1-9617-424c-a21f-cdd24a75d153Risk file: bb7b1c0de60b
Reviewer: Codex, gpt-6.2-sol, low effort
Session:
01a21b86-b3b3-7d72-8b82-df58c518cc0a, round 1Score: 10/10,
By inspection, seeks now measure media bitrate through the estimated group end while preserving data-track measurement and published group boundaries.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none