Permalink
Browse files

correctly detect mp4 header, fixes #14

  • Loading branch information...
1 parent 3eaabbc commit 4730c839bfa41679e74d4f822776186c526e2939 @leetreveil committed Nov 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/musicmetadata.js
View
@@ -19,6 +19,8 @@ MusicMetadata.prototype.parse = function() {
tag = 'id3v2';
} else if ('ftypM4A' === result.toString('binary', 4, 11)) {
tag = 'id4';
+ } else if ('ftypmp42' === result.toString('binary', 4, 12)) {
+ tag = 'id4'
} else if ('OggS' === result.toString('binary', 0, 4)) {
tag = 'ogg';
} else if ('fLaC' === result.toString('binary', 0, 4)) {

0 comments on commit 4730c83

Please sign in to comment.