Davidg1 wrote: > Sounds like either this is a monkeys and typewriters situation or the > parser itself is less than robust! I guess it matters less if you know > you are always starting at the top of the file.
The code looking for the header just looks for a two byte signature for a header which is an 0xFF followed a byte where (byte & 0xF6) == 0xF0. I'm not great on probability, but this is my estimate: In any random 2-bytes there are 16384 ways of getting a match. So if the adts packet data is 340 random bytes and you start looking for a header at a random place in the header, that sounds like a probability of initially finding a false header is about 1 in 16384*2/340 or roughly 1 in 100 streams. ------------------------------------------------------------------------ utgg's Profile: http://forums.slimdevices.com/member.php?userid=40900 View this thread: http://forums.slimdevices.com/showthread.php?t=53229 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
