segmenter 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/ext/segmenter.c +18 -0
  3. data/segmenter.gemspec +7 -7
  4. metadata +52 -59
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
@@ -279,6 +279,24 @@ static VALUE segmenter_segment(VALUE klass, VALUE input_, VALUE output_prefix_,
279
279
 
280
280
 
281
281
  if (!soundOnly) {
282
+ if(video_st == NULL) {
283
+ fprintf(stderr, "video_st is fail\n");
284
+ rb_raise(rb_eException, "video_st fail");
285
+ exit(1);
286
+ }
287
+
288
+ if(video_st->codec == NULL) {
289
+ fprintf(stderr,"codec is fail\n");
290
+ rb_raise(rb_eException, "codec fail");
291
+ exit(1);
292
+ }
293
+
294
+ if(video_st->codec->codec_id == NULL) {
295
+ fprintf(stderr, "codec_id is fail\n");
296
+ rb_raise(rb_eException, "codec fail");
297
+ exit(1);
298
+ }
299
+
282
300
  codec = avcodec_find_decoder(video_st->codec->codec_id);
283
301
  if (!codec) {
284
302
  rb_raise(rb_eException, "Could not find video decoder, key frames will not be honored");
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{segmenter}
8
- s.version = "0.7.1"
8
+ s.version = "0.7.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Emil Palm"]
12
- s.date = %q{2011-07-08}
11
+ s.authors = [%q{Emil Palm}]
12
+ s.date = %q{2011-09-02}
13
13
  s.description = %q{}
14
14
  s.email = %q{emil@x86.nu}
15
- s.extensions = ["ext/extconf.rb"]
15
+ s.extensions = [%q{ext/extconf.rb}]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc"
@@ -33,9 +33,9 @@ Gem::Specification.new do |s|
33
33
  "segmenter.gemspec"
34
34
  ]
35
35
  s.homepage = %q{http://github.com/mrevilme/segmenter}
36
- s.licenses = ["MIT"]
37
- s.require_paths = ["lib"]
38
- s.rubygems_version = %q{1.6.2}
36
+ s.licenses = [%q{MIT}]
37
+ s.require_paths = [%q{lib}]
38
+ s.rubygems_version = %q{1.8.8}
39
39
  s.summary = %q{}
40
40
 
41
41
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,72 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: segmenter
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.2
4
5
  prerelease:
5
- version: 0.7.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Emil Palm
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-08 00:00:00 +02:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-09-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: shoulda
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2160600380 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :development
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2160600380
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &2160599560 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
29
+ requirements:
33
30
  - - ~>
34
- - !ruby/object:Gem::Version
31
+ - !ruby/object:Gem::Version
35
32
  version: 1.0.0
36
33
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: jeweler
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2160599560
36
+ - !ruby/object:Gem::Dependency
37
+ name: jeweler
38
+ requirement: &2160598620 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
40
+ requirements:
44
41
  - - ~>
45
- - !ruby/object:Gem::Version
42
+ - !ruby/object:Gem::Version
46
43
  version: 1.6.3
47
44
  type: :development
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: rcov
51
45
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2160598620
47
+ - !ruby/object:Gem::Dependency
48
+ name: rcov
49
+ requirement: &2160597760 !ruby/object:Gem::Requirement
53
50
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
58
55
  type: :development
59
- version_requirements: *id004
60
- description: ""
56
+ prerelease: false
57
+ version_requirements: *2160597760
58
+ description: ''
61
59
  email: emil@x86.nu
62
60
  executables: []
63
-
64
- extensions:
61
+ extensions:
65
62
  - ext/extconf.rb
66
- extra_rdoc_files:
63
+ extra_rdoc_files:
67
64
  - LICENSE.txt
68
65
  - README.rdoc
69
- files:
66
+ files:
70
67
  - COPYING
71
68
  - LICENSE.txt
72
69
  - Manifest
@@ -80,33 +77,29 @@ files:
80
77
  - ext/test.rb
81
78
  - lib/segmenter.rb
82
79
  - segmenter.gemspec
83
- has_rdoc: true
84
80
  homepage: http://github.com/mrevilme/segmenter
85
- licenses:
81
+ licenses:
86
82
  - MIT
87
83
  post_install_message:
88
84
  rdoc_options: []
89
-
90
- require_paths:
85
+ require_paths:
91
86
  - lib
92
- required_ruby_version: !ruby/object:Gem::Requirement
87
+ required_ruby_version: !ruby/object:Gem::Requirement
93
88
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: "0"
98
- required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
94
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: "0"
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
104
99
  requirements: []
105
-
106
100
  rubyforge_project:
107
- rubygems_version: 1.6.2
101
+ rubygems_version: 1.8.8
108
102
  signing_key:
109
103
  specification_version: 3
110
- summary: ""
104
+ summary: ''
111
105
  test_files: []
112
-