David Rasmussen wrote: <snip> > If you must know, the above one-liner actually counts the number of > frames in an MPEG2 file. I want to know this number for a number of > files for various reasons. I don't want it to take forever. <snip>
Don't you risk getting more "frames" than the file actually have? What if the encoded data happens to have the magic byte values for something else? -- Lasse Vågsæther Karlsen http://usinglvkblog.blogspot.com/ mailto:[EMAIL PROTECTED] PGP KeyID: 0x2A42A1C2 -- http://mail.python.org/mailman/listinfo/python-list