summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibAudio/MP3Loader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibAudio/MP3Loader.cpp b/Userland/Libraries/LibAudio/MP3Loader.cpp
index 22b4c0a225..f1082663fc 100644
--- a/Userland/Libraries/LibAudio/MP3Loader.cpp
+++ b/Userland/Libraries/LibAudio/MP3Loader.cpp
@@ -68,6 +68,7 @@ MaybeLoaderError MP3LoaderPlugin::reset()
m_synthesis_buffer = {};
m_loaded_samples = 0;
m_bit_reservoir.discard_or_error(m_bit_reservoir.size());
+ m_bitstream->align_to_byte_boundary();
return {};
}
@@ -86,6 +87,7 @@ MaybeLoaderError MP3LoaderPlugin::seek(int const position)
m_bit_reservoir.discard_or_error(m_bit_reservoir.size());
m_bit_reservoir.handle_any_error();
m_is_first_frame = true;
+ m_bitstream->align_to_byte_boundary();
return {};
}