Permalink
Browse files

mis-placed to_s

  • Loading branch information...
1 parent bca2742 commit 9a377b5067bc14463a81db0967c8c9c7362e7e89 @walterdavis walterdavis committed Sep 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/paperclip_processors/ffmpeg.rb
@@ -176,8 +176,8 @@ def identify
# Video: h264, yuvj420p, 640x480 [PAR 72:72 DAR 4:3], 10301 kb/s, 30 fps, 30 tbr, 600 tbn, 600 tbc
if line =~ /Video:(.*)/
v = $1.to_s
- size = v.match(/\d{3,5}x\d{3,5}/)
- meta[:size] = size.to_s
+ size = v.match(/\d{3,5}x\d{3,5}/).to_s
+ meta[:size] = size
meta[:aspect] = size.split('x').first.to_f / size.split('x').last.to_f
end
# Matching Duration: 00:01:31.66, start: 0.000000, bitrate: 10404 kb/s

0 comments on commit 9a377b5

Please sign in to comment.