Skip to content
Snippets Groups Projects
Forked from Xiph.Org / Opus
Source project has a limited visibility.
  • Jean-Marc Valin's avatar
    3120e225
    Fixes a stereo rate mismatch bug · 3120e225
    Jean-Marc Valin authored
    This is a tentative fix for a bug found in fuzzing where the encoder
    switched from mono to stereo while in the process of changing bandwidth.
    The result was that the newly added side would use the new sampling
    rate, while the mid hadn't switched yet, causing an encoder/decoder
    mismatch. The fix is that the side rate selection gets overridden
    to use the mid rate.
    The bug would occur when compiling with fuzzing enabled and using:
    ./test_opus 0 48000 2 24000 input.sw output.sw
    3120e225
    History
    Fixes a stereo rate mismatch bug
    Jean-Marc Valin authored
    This is a tentative fix for a bug found in fuzzing where the encoder
    switched from mono to stereo while in the process of changing bandwidth.
    The result was that the newly added side would use the new sampling
    rate, while the mid hadn't switched yet, causing an encoder/decoder
    mismatch. The fix is that the side rate selection gets overridden
    to use the mid rate.
    The bug would occur when compiling with fuzzing enabled and using:
    ./test_opus 0 48000 2 24000 input.sw output.sw
resampler_rom.h 3.22 KiB