summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-03-04 20:47:54 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2012-03-04 20:47:54 +0100
commit24c46684254bb9d5240cb63f380842a792f3a061 (patch)
treec2a83fcebd92a8ff6e21dbf7ddb28ee621446469
parent69984a8c93ec8910b3cb026c9056572644c059ac (diff)
Fixed multi-track brokenness.
-rw-r--r--codec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/codec.py b/codec.py
index 417e9e3..47167dc 100644
--- a/codec.py
+++ b/codec.py
@@ -58,8 +58,8 @@ class FFmpeg(Decoder):
cmd = 'ffmpeg -loglevel quiet'.split()
if 'start_time' in kwargs and kwargs['start_time']:
cmd += ['-ss', str(kwargs['start_time'])]
- if 'end_time' in kwargs and kwargs['end_time']:
- cmd += ['-t', str(kwargs['end_time'] - kwargs['start_time'])]
+ if 'end_time' in kwargs and kwargs['end_time']:
+ cmd += ['-t', str(kwargs['end_time'] - kwargs['start_time'])]
cmd += ['-i', self.source, '-y', self.destination]
devnull = open('/dev/null', 'a+')
p = subprocess.Popen(cmd, stderr = devnull, close_fds = True)