Skip to content

Instantly share code, notes, and snippets.

@jamesmeneghello
Last active December 19, 2015 09:49
Show Gist options
  • Select an option

  • Save jamesmeneghello/5935914 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmeneghello/5935914 to your computer and use it in GitHub Desktop.
Patch for CouchPotatoServer #1828
diff --git a/libs/enzyme/mp4.py b/libs/enzyme/mp4.py
index c53f30d..05c1630 100644
--- a/libs/enzyme/mp4.py
+++ b/libs/enzyme/mp4.py
@@ -347,7 +347,8 @@ class MPEG4(core.AVContainer):
tracktype = 'audio'
else:
log.debug(u' --> %r, %r (unknown)' % mdia)
-
+ if mdia[0] == 0:
+ break
pos += mdia[0]
datasize -= mdia[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment