summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xDemo/sgi/video/Vb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py
index c7e7fcc..2596ca5 100755
--- a/Demo/sgi/video/Vb.py
+++ b/Demo/sgi/video/Vb.py
@@ -476,7 +476,7 @@ class VideoBagOfTricks:
if nframes == 0:
maxmem = self.getint(self.in_maxmem, 1.0)
memsize = int(maxmem * 1024 * 1024)
- nframes = self.calcnframes()
+ nframes = self.calcnframes(memsize)
info = (vformat, x, y, nframes, 1)
try:
info2, data, bitvec = self.video.CaptureBurst(info)
@@ -489,7 +489,7 @@ class VideoBagOfTricks:
self.save_burst(info2, data, bitvec)
self.setarrow()
- def calcnframes(self):
+ def calcnframes(self, memsize):
gl.winset(self.window)
x, y = gl.getsize()
pixels = x*y