Skip to content

Conversation

@NicolasHug
Copy link
Contributor

@NicolasHug NicolasHug commented Mar 20, 2025

We were only testing sample rate conversion on mono data, and I didn't realize that the flushing part was segfaulting when num_channels > 1. I wasn't setting the output buffer parameter of swr_convert() correctly.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 20, 2025
@NicolasHug NicolasHug changed the title Debug Fix sample rate conversion bug with multi-channel data Mar 20, 2025
@NicolasHug NicolasHug marked this pull request as ready for review March 20, 2025 19:00
@NicolasHug NicolasHug merged commit 4ee3db5 into meta-pytorch:main Mar 21, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants