about summary refs log tree commit homepage
path: root/lib/dtas/source/av_ff_common.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/source/av_ff_common.rb')
-rw-r--r--lib/dtas/source/av_ff_common.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dtas/source/av_ff_common.rb b/lib/dtas/source/av_ff_common.rb
index 1d0f146..36919e6 100644
--- a/lib/dtas/source/av_ff_common.rb
+++ b/lib/dtas/source/av_ff_common.rb
@@ -118,6 +118,8 @@ module DTAS::Source::AvFfCommon # :nodoc:
   # file itself, not the decoded output
   def samples
     @samples ||= (@duration * @format.rate).round
+  rescue
+    0
   end
 
   def to_hsh