From d9971f3c660983fb7086c4028ec847effd7a3f23 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 2 Jan 2008 07:34:31 +0000 Subject: [PATCH] only one place to define height --- 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 9d134a1..5a8960e 100755 --- a/oxdbarchive/tools/extract_timeline.py +++ b/oxdbarchive/tools/extract_timeline.py @@ -96,7 +96,7 @@ class GstTimeline: img = Image.fromstring('RGB',input_d, gst_buffer) img = img.resize((1, bar_height), Image.ANTIALIAS) self.frames += 1 - for i in range(height): + for i in range(bar_height): self.bar.putpixel((self.frames, i), img.getpixel((0,i))) if self.frames >= self.width_part and self.frames > 30: self.cropAndSave()