Author: dmeyer
Date: Tue Dec 12 15:30:16 2006
New Revision: 2227
Modified:
trunk/metadata/src/video/mpeginfo.py
Log:
handle bad length
Modified: trunk/metadata/src/video/mpeginfo.py
==============================================================================
--- trunk/metadata/src/video/mpeginfo.py (original)
+++ trunk/metadata/src/video/mpeginfo.py Tue Dec 12 15:30:16 2006
@@ -154,6 +154,8 @@
self.video.append(mediainfo.VideoInfo())
if self.sequence_header_offset <= 0:
+ if self.length <= 0:
+ self.length = None
return
self.progressive(file)
@@ -178,6 +180,10 @@
if not a.codec:
a.codec = ac
+ if self.length <= 0:
+ self.length = None
+
+
def dxy(self,file):
"""
get width and height of the video
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog