Skip to content

Commit 04b1b95

Browse files
author
Joe Lou
committed
Fix
1 parent a9dd64e commit 04b1b95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pymp3decoder/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ def decode_iter(self, content):
246246
channel mode
247247
"""
248248

249+
# Our mp3 has no metadata containers. This code improperly strips the beginning
250+
# of the audio, so I'm just ignoring it for now.
251+
"""
249252
# need to strip the tag off the first chunk
250253
first_chunk = next(content)
251254
tag_length = self.get_tag_length(first_chunk)
@@ -272,6 +275,8 @@ def decode_iter(self, content):
272275
remaining = ""
273276
274277
remaining = bytearray(remaining)
278+
"""
279+
remaining = bytearray()
275280

276281
for chunk in content:
277282
decoded_chunk, remaining = self.decode(chunk, remaining)

0 commit comments

Comments
 (0)