lib/dtas/source/av_ff_common.rb in dtas-0.13.1 vs lib/dtas/source/av_ff_common.rb in dtas-0.14.0
- old
+ new
@@ -17,9 +17,10 @@
AStream = Struct.new(:duration, :channels, :rate)
AV_FF_TRYORDER = 1
attr_reader :precision # always 32
attr_reader :format
+ attr_reader :duration
def try(infile, offset = nil, trim = nil)
rv = source_file_dup(infile, offset, trim)
rv.av_ff_ok? or return
rv