Re: Scanning a file
David Rasmussen wrote:
<snip>[color=blue]
> 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.[/color]
<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
mailto:lasse@vk arlsen.no
PGP KeyID: 0x2A42A1C2
David Rasmussen wrote:
<snip>[color=blue]
> 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.[/color]
<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
mailto:lasse@vk arlsen.no
PGP KeyID: 0x2A42A1C2
Comment