Mr Tom

Results 5 comments of Mr Tom

Could you provide a small test file? Header bytes seem to be: 00 00 00 18 66 74 79 70 61 76 69 66 00 00 00 00 ....ftypavif.... The...

Added sample file and some extra tests. Some tests fail, which I guess is using the old matcher function. The same tests pass locally with patched matcher function.

Seeing how it's done in the matcher functions with matching against only the 2 bytes, I've changed mine to this: > Mp3(buf []byte) bool { > return len(buf) > 2...

There may be more possibilities for that second byte. See spec here: http://www.mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm Edit: I've been looking into this further. We only want MPEG-1 Layer III for MP3 audio, which...

I modified my local matcher function in this way to check the first bit only once: > func Mp3(buf []byte) bool { > return len(buf) > 2 && > ((buf[0]...