Skip to content

Reset resampler on seek to fix off-by-one audio sample count - #1604

Merged
NicolasHug merged 1 commit into
meta-pytorch:mainfrom
NicolasHug:smaplefix
Aug 5, 2026
Merged

Reset resampler on seek to fix off-by-one audio sample count#1604
NicolasHug merged 1 commit into
meta-pytorch:mainfrom
NicolasHug:smaplefix

Conversation

@NicolasHug

@NicolasHug NicolasHug commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #1601.

See non-regression test. I don't fully understand the bug trigger conditions (which seem pretty rare), but the fix is probably something we should have been doing already anyway.

EDIT: #1614, #1615, #1616 were related follow-up fixes, the 'fix' here (resetting the resampler) was definitely needed and led to the need for those follow-ups). The trigger condition I didn't understand became very clear.

@NicolasHug NicolasHug added the bug Something isn't working label Aug 5, 2026
@pytorch-bot

pytorch-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1604

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 20 Pending

As of commit 2fbf280 with merge base e8f2347 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 5, 2026
@NicolasHug
NicolasHug merged commit 1e0f188 into meta-pytorch:main Aug 5, 2026
83 of 84 checks passed
@NicolasHug
NicolasHug deleted the smaplefix branch August 5, 2026 22:01
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.

AudioDecoder intermittently drops 1 sample in final fractional-second chunk

1 participant