streamio-ffmpeg 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.6.7 2010-06-10
2
+
3
+ * Bugfix - aspect ratio preserver could suggest non even resolutions in certain circumstances
4
+
1
5
  == 0.6.6 2010-06-10
2
6
 
3
7
  * Transcodings to .jpg and .png will now work as they will skip duration validation.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.6
1
+ 0.6.7
@@ -86,10 +86,12 @@ module FFMPEG
86
86
  when "width"
87
87
  new_height = @raw_options.width / @movie.calculated_aspect_ratio
88
88
  new_height = new_height.ceil.even? ? new_height.ceil : new_height.floor
89
+ new_height += 1 if new_height.odd? # needed if new_height ended up with no decimals in the first place
89
90
  @raw_options[:resolution] = "#{@raw_options.width}x#{new_height}"
90
91
  when "height"
91
92
  new_width = @raw_options.height * @movie.calculated_aspect_ratio
92
93
  new_width = new_width.ceil.even? ? new_width.ceil : new_width.floor
94
+ new_width += 1 if new_width.odd?
93
95
  @raw_options[:resolution] = "#{new_width}x#{@raw_options.height}"
94
96
  end
95
97
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{streamio-ffmpeg}
8
- s.version = "0.6.6"
8
+ s.version = "0.6.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Backeus"]
12
- s.date = %q{2010-06-10}
12
+ s.date = %q{2010-06-15}
13
13
  s.description = %q{Simple wrapper around ffmpeg to get metadata from movies and do transcoding}
14
14
  s.email = %q{duztdruid@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio-ffmpeg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 6
10
- version: 0.6.6
9
+ - 7
10
+ version: 0.6.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Backeus
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-10 00:00:00 +02:00
18
+ date: 2010-06-15 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency