Repository navigation
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Quick104
left a comment
There was a problem hiding this comment.
Reviewed with gpt-6.1-sol in T3 Code using the Codex provider.
| val colorInfoOutput = ColorInfoTrackOutput( | ||
| output, | ||
| expectedDynamicRange, | ||
| expectedColorRange, |
There was a problem hiding this comment.
[P2] Bind the range fallback to the video track it describes
Every video TrackOutput receives the same expectedColorRange, but the server builds this hint from VideoTracks[0], and v3 supplies no selected video-stream identity. I reproduced this with a valid two-track H.264 MKV whose container range fields are absent: ffprobe reports tv for the first track and pc for the second; Media3 1.10.1 emits both ranges as unspecified, and the production factory with the server's tv hint rewrites both to limited range. If Media3 selects the second track, phone and TV pass the first track's range to MediaCodec, risking incorrect black/white levels. Apply the hint only when the video track is unambiguous, or carry a video-stream identity and match the hint to its TrackOutput. The coordinated Apple implementation already requires exactly one video track.
|
Silo's pull request guidance changed today (#490). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Missing here: Before-and-after frame captures of an affected file on phone or TV showing the corrected black and white levels. The rules are in Show visible changes, and the PR template shows the Evidence section layout. This PR is already a draft, so I've left it that way. Please fill in the Evidence section before marking it ready for review. Generated by Claude Code |
Summary
color_rangefrom catalog metadata and the additive playback-v3 source descriptortvto Media3 limited range andpcto full range only when extractor color range is unspecifiedWhy
Silo preserves direct-play bytes, but Media3 can receive an unspecified container range. The server-probed FFmpeg value supplies a safe fallback while explicit extractor metadata remains authoritative.
Testing
:androidApp:compileDebugKotlinAndroid:androidTvApp:compileDebugKotlinAndroidCoordination
Depends on Silo-Server/silo-server#447.
Part of Silo-Server/silo-server#446
AI use
Implemented with OpenAI Codex. The generated patch was reviewed, focused tests and both client compiles were run, and review findings were addressed before publication.