file-type
file-type copied to clipboard
Ability to detect MPEG when prefixed with some noise
Allow 4 bytes of prefixing MPEG noise.
Via options.mpegOffsetTollerance this number can be increased, which will result it a bit slow scanning times.
Resolves #628
ToDo
- [ ] Document
options.mpegOffsetTollerance - [ ] Add MPEG noise fixture
- [ ] Handle corner case
options.mpegOffsetTolleranceexceed 256 (peeked buffer size) - 2 (MPEG preamble) [bytes]