lib/wgif/video.rb in wgif-0.5.1 vs lib/wgif/video.rb in wgif-0.5.2

- old
+ new

@@ -15,10 +15,10 @@ def trim(start_timestamp, duration) options = { audio_codec: 'copy', video_codec: 'copy', - custom: "-ss #{start_timestamp} -t 00:00:#{'%06.3f' % duration}" + custom: "-ss #{start_timestamp} -t 00:00:#{format('%06.3f', duration)}" } transcode(@clip, "/tmp/wgif/#{@name}-clip.mov", options) WGif::Video.new "#{@name}-clip", "/tmp/wgif/#{@name}-clip.mov" end