Skip to content

Commit

Permalink
mis-placed to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
walterdavis committed Sep 23, 2013
1 parent bca2742 commit 9a377b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paperclip_processors/ffmpeg.rb
Expand Up @@ -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 # Video: h264, yuvj420p, 640x480 [PAR 72:72 DAR 4:3], 10301 kb/s, 30 fps, 30 tbr, 600 tbn, 600 tbc
if line =~ /Video:(.*)/ if line =~ /Video:(.*)/
v = $1.to_s v = $1.to_s
size = v.match(/\d{3,5}x\d{3,5}/) size = v.match(/\d{3,5}x\d{3,5}/).to_s
meta[:size] = size.to_s meta[:size] = size
meta[:aspect] = size.split('x').first.to_f / size.split('x').last.to_f meta[:aspect] = size.split('x').first.to_f / size.split('x').last.to_f
end end
# Matching Duration: 00:01:31.66, start: 0.000000, bitrate: 10404 kb/s # Matching Duration: 00:01:31.66, start: 0.000000, bitrate: 10404 kb/s
Expand Down

0 comments on commit 9a377b5

Please sign in to comment.