diff --git a/index.js b/index.js index a290fceb..f438532a 100644 --- a/index.js +++ b/index.js @@ -941,7 +941,7 @@ const fileType = input => { }; } - if (check([0x77, 0x0B])) { + if (check([0x0B, 0x77])) { return { ext: 'ac3', mime: 'audio/vnd.dolby.dd-raw' diff --git a/test.js b/test.js index 3eab02f5..0c5069b4 100644 --- a/test.js +++ b/test.js @@ -107,7 +107,8 @@ const types = [ 'dsf', 'lnk', 'alias', - 'voc' + 'voc', + 'ac3' ]; // Define an entry here only if the fixture has a different