Skip to content

Conversation

NicolasHug
Copy link
Contributor

Fixes #661

Output shape is now (num_channels, 0) instead of (0, 0). This is more consistent with the video decoder as well, so I think we can consider this a bug fix.

@NicolasHug NicolasHug added the bug Something isn't working label Apr 29, 2025
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 29, 2025
@NicolasHug NicolasHug requested a review from scotts April 29, 2025 09:03
if (stopSecondsOptional.has_value() && startSeconds == *stopSecondsOptional) {
// For consistency with video
return AudioFramesOutput{torch::empty({0, 0}), 0.0};
auto numChannels = getNumChannels(streamInfo.codecContext);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I prefer we're explicit about our ints. It's just as easy to read.

@NicolasHug NicolasHug merged commit 99d21db into meta-pytorch:main Apr 29, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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.

Audio decoding format issues

3 participants