From f057d1e4c2db8be224b78a23e351cb7be06ea64c Mon Sep 17 00:00:00 2001 From: Mikewando <3258334+Mikewando@users.noreply.github.com> Date: Sat, 19 Apr 2025 01:03:00 -0400 Subject: [PATCH] Fix audio header padding Audio header padding is now correctly applied. --- PyCriCodecs/usm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PyCriCodecs/usm.py b/PyCriCodecs/usm.py index a077f78..040ce75 100644 --- a/PyCriCodecs/usm.py +++ b/PyCriCodecs/usm.py @@ -923,8 +923,7 @@ def build_header(self, SFV_list: list, SFA_chunks: list = False, SBT_chunks = No 0, 0 ) - chk += metadata - chk.ljust(len(metadata) + padding, b"\x00") + chk += metadata.ljust(len(metadata) + padding, b"\x00") audio_metadata.append(chk) chno += 1