From 32a4b567f439cae6afbf03de687ef9403a239dd8 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 25 Nov 2010 15:11:16 +0100 Subject: [PATCH] add dependencies --- oxtimeline/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxtimeline/video.py b/oxtimeline/video.py index 47d4d77..5b48f53 100644 --- a/oxtimeline/video.py +++ b/oxtimeline/video.py @@ -126,7 +126,7 @@ class Timeline(Video): # we know we're prerolled when we get the initial thumbnail self._ready = True else: - _framePos = int(math.ceil((float(timestamp) / (gst.SECOND) * float(self.framerate)))) + _framePos = int(math.ceil((float(timestamp) / (gst.SECOND) * float(self.framerate)))) + 1 frame = frame.resize((1, self.tile_height), Image.ANTIALIAS) for framePos in range(self.lastPos, _framePos): tile = int(math.floor(float(framePos) / self.input_tile_width))