hornetseye-ffmpeg 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/ext/avinput.cc +1 -0
- data/lib/hornetseye-ffmpeg/avinput.rb +3 -3
- metadata +3 -3
data/Rakefile
CHANGED
data/ext/avinput.cc
CHANGED
@@ -200,6 +200,7 @@ VALUE AVInput::registerRubyClass( VALUE rbModule )
|
|
200
200
|
rb_define_singleton_method( cRubyClass, "new",
|
201
201
|
RUBY_METHOD_FUNC( wrapNew ), 1 );
|
202
202
|
rb_define_const( cRubyClass, "AV_TIME_BASE", INT2NUM( AV_TIME_BASE ) );
|
203
|
+
rb_define_const( cRubyClass, "AV_NOPTS_VALUE", LL2NUM( AV_NOPTS_VALUE ) );
|
203
204
|
rb_define_method( cRubyClass, "close", RUBY_METHOD_FUNC( wrapClose ), 0 );
|
204
205
|
rb_define_method( cRubyClass, "read", RUBY_METHOD_FUNC( wrapRead ), 0 );
|
205
206
|
rb_define_method( cRubyClass, "status?", RUBY_METHOD_FUNC( wrapStatus ), 0 );
|
@@ -52,19 +52,19 @@ module Hornetseye
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def pos
|
55
|
-
pts * time_base
|
55
|
+
pts == AV_NOPTS_VALUE ? nil : pts * time_base
|
56
56
|
end
|
57
57
|
|
58
58
|
alias_method :orig_duration, :duration
|
59
59
|
|
60
60
|
def duration
|
61
|
-
orig_duration * time_base
|
61
|
+
orig_duration == AV_NOPTS_VALUE ? nil : orig_duration * time_base
|
62
62
|
end
|
63
63
|
|
64
64
|
alias_method :orig_start_time, :start_time
|
65
65
|
|
66
66
|
def start_time
|
67
|
-
orig_start_time * time_base
|
67
|
+
orig_start_time == AV_NOPTS_VALUE ? nil : orig_start_time * time_base
|
68
68
|
end
|
69
69
|
|
70
70
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 3
|
9
|
+
version: 0.4.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jan Wedekind
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-16 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|