Skip to content

Conversation

@buzinas
Copy link
Contributor

@buzinas buzinas commented Aug 16, 2018

@buzinas buzinas self-assigned this Aug 16, 2018
@buzinas buzinas requested a review from philfreo August 16, 2018 16:51
@buzinas buzinas force-pushed the relax_mp3_detection_algorithm branch from e48dd25 to 5a4dce8 Compare August 17, 2018 14:12
Copy link
Member

@wojcikstefan wojcikstefan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I haven't tested it.

filevalidator.js Outdated
[0x49, 0x44, 0x33]
[0x49, 0x44, 0x33],
// Other MP3 files (FF Fx and FF Ex – they may cause false-positives)
// Headers got from https://www.garykessler.net/library/file_sigs.html
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taken from

"version": "1.0.1",
"description": "File signature validation in JavaScript",
"main": "filevalidator.js",
"scripts": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this unnecessary? I don't see any tests added to the PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wojcikstefan I think his point is "why was it necessary"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is added by npm init and it's unnecessary. It was just a clean up.

// Other MP3 files (FF Fx and FF Ex – they may cause false-positives)
// Headers got from https://www.garykessler.net/library/file_sigs.html
[0xFF, 0xE0], [0xFF, 0xE1], [0xFF, 0xE2], [0xFF, 0xE3], [0xFF, 0xE4],
[0xFF, 0xE5], [0xFF, 0xE6], [0xFF, 0xE7], [0xFF, 0xE8], [0xFF, 0xE9],
Copy link
Member

@philfreo philfreo Aug 17, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't x in the external site referring to a hex number? So e.g. 0xEA - 0xEF are missing still ? Or am I thinking about this wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, you're right, good point! Let me fix!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@buzinas buzinas force-pushed the relax_mp3_detection_algorithm branch from 0a20cb1 to de6b891 Compare August 17, 2018 14:59
@buzinas buzinas requested a review from philfreo August 17, 2018 15:09
@philfreo philfreo merged commit 307b4f6 into master Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants