depix 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/lib/depix.rb +6 -2
- metadata +1 -1
data/History.txt
CHANGED
data/lib/depix.rb
CHANGED
@@ -10,7 +10,7 @@ require File.dirname(__FILE__) + '/depix/editor'
|
|
10
10
|
|
11
11
|
|
12
12
|
module Depix
|
13
|
-
VERSION = '1.1.
|
13
|
+
VERSION = '1.1.2'
|
14
14
|
|
15
15
|
class InvalidHeader < RuntimeError; end
|
16
16
|
|
@@ -42,7 +42,11 @@ module Depix
|
|
42
42
|
# writes different rates for television and film time code
|
43
43
|
def time_code
|
44
44
|
framerate = television.frame_rate || film.frame_rate || DEFAULT_DPX_FPS
|
45
|
-
|
45
|
+
if television.time_code
|
46
|
+
Timecode.from_uint(television.time_code, framerate)
|
47
|
+
else
|
48
|
+
Timecode.new(0, framerate)
|
49
|
+
end
|
46
50
|
end
|
47
51
|
|
48
52
|
# Assign frame rate and timecode from a Timecode object
|