Hi all, I noticed that mminfo loops infinitely for some pictures and bogus mp3 files. Check out the traces attached. The jpg trace was made by calling parse function on picture.jpg.
I believe there is a problem with file.seek(offset[,whence]). See http://docs.python.org/library/stdtypes.html?highlight=seek#file.seek The infinite loop in mp3.py can be tackled by replacing line fp.seek(start_pos) with fp.seek(start_pos, os.SEEK_CUR) in function def find_header(fp, start_pos=0) I think there is a similar problem in function s2n(self, offset, length, signed=0) of EXIF.py. Python is quite new to me. So I really don't know, if this is the best solution. I am using Python 2.5 btw. Thanks for the great library! Cheers, Till
metadata_parse_jpg_loop.trace
Description: Binary data
metadata_parse_mp3_loop.trace
Description: Binary data
<<attachment: picture.jpg>>
------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel