From c9ba3dfa89bb24d23d48e80b71c7fe3e1593d161 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 8 Dec 2007 13:40:04 +0000 Subject: [PATCH] timeline width should never be 0 --- oxdbarchive/tools/extract_timeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oxdbarchive/tools/extract_timeline.py b/oxdbarchive/tools/extract_timeline.py index 9870fab..5f35998 100755 --- a/oxdbarchive/tools/extract_timeline.py +++ b/oxdbarchive/tools/extract_timeline.py @@ -68,7 +68,7 @@ class GstTimeline: def cropAndSave(self): if self.frames: - mini_width = int(self.frames / self.fps) + mini_width = int(math.ceil(float(self.frames) / self.fps)) mini_width = min(mini_width, bar_part_time) #crop if segment is shorter c = self.bar.crop((0, 0, self.frames,bar_height))