about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-30 06:28:08 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-30 06:28:08 +0000
commit7df370d5c4f8d2c9bde5a30ba95bf0a499f5a6a3 (patch)
tree5b237a1cd602acb415065a481b635f3239cbb6cc
parent91caa09c2e4021dcda1af79360527d0f15b2a4cd (diff)
downloaddtas-7df370d5c4f8d2c9bde5a30ba95bf0a499f5a6a3.tar.gz
This is reproducible on a video file with a mono audio stream
when attempting playback in stereo.
-rw-r--r--lib/dtas/source/av_ff_common.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/av_ff_common.rb b/lib/dtas/source/av_ff_common.rb
index bcb8a0a..2ae8d69 100644
--- a/lib/dtas/source/av_ff_common.rb
+++ b/lib/dtas/source/av_ff_common.rb
@@ -81,7 +81,7 @@ module DTAS::Source::AvFfCommon # :nodoc:
       as or next
       select_astream(as)
       warn "no suitable audio stream in #@infile, trying stream=#{index}"
-      return "-map 0:#{i}"
+      return "-map 0:#{index}"
     end
     raise "BUG: no audio stream in #@infile"
   end