ffmpegwasm/ffmpeg.wasm

Cant convert to opus at 48000khz `memory access out of bounds`

Opened this issue · 1 comments

Describe the bug
Converting to .opus at 48000khz results it memory access out of bounds error.
Opus supports 48k, 24k, 16k, 12k, 8k. Only 48k throws an error.

To Reproduce
[
"-i",
"input.mp3",
"-c:a", "libopus",
"-b:a", "64k",
"-ar", "48000" , // 24000, 16000, 12000, 8000 Other sample rates work as intended.
"output.opus"
]

48000 is the default so leaving out "-ar 48000" also results in an error.

Expected behavior
It should work like the other sample rates.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: Version 135.0.7049.96 (Official Build) (64-bit)

This PR should fix this issue but I don't think it's in the latest release.