If you only rely on the first frame the MPEG will have a lot of false positives.
Perhaps partially decoding the first frame to locate the second one, then check the second header, would solve most cases. The mpega player for DT does something like that.
|