diff --git a/lib/wahwah/helper.rb b/lib/wahwah/helper.rb index 1255a8f..7ea0aec 100644 --- a/lib/wahwah/helper.rb +++ b/lib/wahwah/helper.rb @@ -60,7 +60,7 @@ def self.file_format_from_signature(io) # M4A is checked for first, since MP4 files start with a chunk size - # and that chunk size may incidentally match another signature. # No other formats would reasonably have "ftyp" as the next for bytes. - return "m4a" if signature[4...12] == "ftypM4A ".b + return "m4a" if ["ftypM4A ".b, "ftyp3gp4".b].include?(signature[4...12]) # Handled separately simply because it requires two checks. return "wav" if signature.start_with?("RIFF".b) && signature[8...12] == "WAVE".b magic_numbers = { diff --git a/lib/wahwah/version.rb b/lib/wahwah/version.rb index 1610cee..f9c7c0e 100644 --- a/lib/wahwah/version.rb +++ b/lib/wahwah/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module WahWah - VERSION = "1.6.3" + VERSION = "1.6.4" end