3 ms·
But that code that you linked to does not verify that the file is mp4, moreover, mp4Sig call is commented out.
by ChALkeR 11y ago
But that code that you linked to does not verify that the file is mp4, moreover, mp4Sig call is commented out.
- anonfunction 11y agoIt verifies that the beginning of a file is mp4 format. I'm actually running go 1.6 which does have the mp4 sniffing enabled.
- IceyEC 11y agoI was under the impression than MP4 could have all of its format specific headers at the end of the file just as well as the beginning according to the spec.
- anonfunction 11y agoThat is correct, however the beginning of the file does have a signature: https://mimesniff.spec.whatwg.org/#signature-for-mp4 https://mimesniff.spec.whatwg.org/#signature-for-mp4