Repository navigation
Conversation
RFC 7845 section 5.1.1.2 gives 7 channels as 5 streams with 2 coupled pairs. The table said 4 streams and 3 coupled, so a 6.1 Opus voice was split into the wrong streams. Adds a test that checks the mappings of 3 to 8 channels. Part of xcl-dev#327
configure_output took the first PCM16 or Float32 type and overwrote the channel count, which could make the multistream interleave read out of bounds when the MFT listed another channel count first. It now chooses among the types with the decoder's own count. drain_output also gives up after 4 stream changes instead of retrying forever. The type choice has a unit test; the retry cap has none (no mock MFT). Stacked on the 6.1 mapping branch. Part of xcl-dev#327
milas6669
force-pushed
the
opus-mft-output-guards
branch
from
November 24, 2026 02:46
3cea37b to
343b0ae
Compare
Contributor
Author
|
Closing: #503 already covers the MFT output-type guard and was opened earlier. Please review it instead. |
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.
Stacked on #622; only the top commit belongs here.
configure_outputtook the first PCM16/Float32 output type and overwrote the channel count, which can read out of bounds in the multistream interleave if the MFT lists another count first. It now chooses among the types with the decoder's own count (choose_output_type).drain_outputgives up after 4MF_E_TRANSFORM_STREAM_CHANGEanswers instead of looping forever.Part of #327 (item 3).
What is in it
opus.rs:choose_output_type,MAX_STREAM_CHANGES, the two call sites; testoutput_type_choice_needs_the_decoders_channel_countTested
cargo test --workspace -- --test-threads=4: 647 passed, 0 failed, 21 ignoredgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Regression run
scripts/smoke.ps1againstNot tested
scripts/smoke.ps1main vs PR headAI use