Opus: the MFT decoder takes only an output type with its channel count #619
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/624"
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?
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T02:37:39Z.
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
Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T03:22:36Z.
Closing: #503 already covers the MFT output-type guard and was opened earlier. Please review it instead.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Pull request closed