Permalink
Browse files

Cruft Removal

  • Loading branch information...
1 parent a381be8 commit b4fe65ee115cdad536d0340f15943a01d09d2a67 @distler distler committed Aug 7, 2012
View
12 vendor/plugins/file_signature/lib/file_signature.rb
@@ -168,17 +168,9 @@ def magic_number_type
end
if bytes[4,4] == 'ftyp'
case bytes[8,3]
- when 'iso'
+ when 'iso', 'mp4', 'avc'
type = :mp4
- when 'mp4'
- type = :mp4
- when 'avc'
- type = :mp4
- when '3ge'
- type = :video_3gpp
- when '3gg'
- type = :video_3gpp
- when '3gp'
+ when '3ge', '3gg', '3gp'
type = :video_3gpp
when '3g2'
type = :video_3gpp2
View
BIN vendor/plugins/file_signature/test/sample.m4v
Binary file not shown.

0 comments on commit b4fe65e

Please sign in to comment.