Repository navigation
Conversation
…tream Opus opus::Decoder gated both stream channel count setup and RFC 7845 channel mapping on `multistream = head.stream_count > 1 || ch > 2`. For valid mapping family 1 or 255 headers with `stream_count == 1` and 1–2 output channels (e.g. swapped L/R `[1, 0]`, muted channel `[0, 255]`, or a coupled stereo stream selecting channel 1), `coupled_count` and `mapping` were silently ignored. Conversely, a 1-stream header with `ch > 2` set `multistream = true` for wire packet framing even though packets hold only one stream. Separate wire framing (`multistream = head.stream_count > 1`) from channel remapping (`use_mapping = head.mapping_family != 0`) and always build stream decoders from `head.stream_count` / `head.coupled_count`. Assisted-by: OpenCode (Gemini 4 Neon)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test report for Tested
Regression run (retail title, main: this PR: Peak commit is over the 125 % rule: this PR's run peaked at 21575 MB, 132 % of Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR applies the channel mapping to a single-stream Opus head with mapping family 1/255. #2696 and #503 change the multistream mapping, not this case. Main's AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
opus::Decodergated both stream channel count setup and RFC 7845 channel remapping onmultistream = head.stream_count > 1 || ch > 2. For valid RFC 7845 mapping family 1 or 255 headers withstream_count == 1and 1–2 output channels (such as swapped L/R[1, 0], muted channels[0, 255], or a coupled stereo stream selecting channel 1),coupled_countandmappingwere silently ignored. Conversely, a 1-stream header withch > 2setmultistream = truefor wire packet framing even though packets hold only one stream.This separates wire framing (
multistream = head.stream_count > 1) from channel remapping (use_mapping = head.mapping_family != 0), and always builds stream decoders fromhead.stream_count/head.coupled_count.What is in it
crates/xcl/src/hle/opus.rs: adduse_mappingtoDecoder, setmultistream = head.stream_count > 1, build stream decoders unconditionally fromcoupled_count, and add unit testsingle_stream_mapping_family_honors_channel_mapping_and_silence(verified failing before the fix).Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 771 passed, 0 failed, 41 ignored (SKIPPED GPU tests: 2no wave64—gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware)cargo test -p xcl --lib opus: 16 passed, 0 failed (single_stream_mapping_family_honors_channel_mapping_and_silencefailed before the fix)Regression run
main:
PR:
Not tested
AI use
hle/opus.rs, wrote the fix and unit test, ran the test suite andscripts/smoke.ps1regression runs, and drafted this PR description.