Author: tack
Date: Tue Apr 25 20:20:53 2006
New Revision: 1497
Modified:
trunk/metadata/src/image/EXIF.py
Log:
See comment.
Modified: trunk/metadata/src/image/EXIF.py
==============================================================================
--- trunk/metadata/src/image/EXIF.py (original)
+++ trunk/metadata/src/image/EXIF.py Tue Apr 25 20:20:53 2006
@@ -811,7 +811,10 @@
def list_IFDs(self):
i=self.first_IFD()
a=[]
- while i:
+ # This works around an infinite loop bug with malformed EXIF headers.
+ # See http://bugs.php.net/bug.php?id=34704 for more info. This fix
+ # is a bit hasty and I'm not sure it's correct but it seems to work.
+ while i and len(a) < 10:
a.append(i)
i=self.next_IFD(i)
return a
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog