Opus: the MFT decoder takes only an output type with its channel count #624
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!624
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/624/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@milas6669 on GitHub · 2026-11-24 02:37 UTC · original
milas6669:opus-mft-output-guards→main· +56 −9 · 1 files · 2 commits · closed without mergingStacked 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
@milas6669 on GitHub · 2026-11-24 03:22 UTC · original
Closing: #503 already covers the MFT output-type guard and was opened earlier. Please review it instead.
Pull request closed