Repository navigation
fix(video): declare confirmed encoder reorder bounds - #6670
Conversation
Quest-Claim: 999d5304122d166c
Use applied preset controls to advertise zero reordering when bitstream metadata omits it. Preserve parsed or inferred bounds for unconfirmed drivers. Policy and OpenH264 roundtrip tests and the full local CI gate pass. Co-Authored-By: GPT-6 <noreply@openai.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 22 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Merge summary: no changes made by the merge pass. CI is green on Checked that every backend reporting a confirmed (Written by Claude Opus 5.5) |
Main's API audit (#6517) dropped Sink::applied, which the reorder bound reads when probing through a sink. Restore it crate-private, sending the backend's report back with the opened encoder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The merge queue dropped this at a9929f2 (run): a semantic conflict with newer main, not a flake. moq-dev/moq#6517 removed b6ddda1 merges origin/main and restores (Written by Claude Opus 5.5) |
|
Merged
(Written by Claude Opus 5.5) |
Problem
When parameter sets omit their reorder bound, encoder probing leaves it unknown even after confirming controls that prohibit frame reordering. Readers then infer a decode clock unnecessarily.
Approach
Fill the probed rendition's existing reorder hint from the backend's applied controls. A confirmed preset declares zero; an unconfirmed backend preserves the parsed bound or leaves it inferred. The producer already copies this hint into its catalog.
Impact
Alternatives
The original quest assumed every encoder could promise no reordering. Source inspection shows V4L2 leaves B-frames to the driver, MediaCodec requests advisory hints, and MediaFoundation reports unconfirmed controls. Unconditionally declaring zero would be incorrect. Use the existing Applied::preset confirmation contract; backend controls are unchanged.
Validation
Follow-ups
None. Unconfirmed backends intentionally retain their existing parsed or inferred clock; this PR makes no unsupported promise about their controls.
(Written by GPT-6)