From 24c46684254bb9d5240cb63f380842a792f3a061 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 4 Mar 2012 20:47:54 +0100 Subject: Fixed multi-track brokenness. --- codec.py | 4 ++-- 1 file 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) -- cgit v1.2.3