Fixes for name errors in conversion functions

This commit is contained in:
Steven Robertson
2012-04-16 01:32:14 -07:00
parent f156b18ce7
commit 5cbbf67886
2 changed files with 5 additions and 7 deletions

View File

@ -29,7 +29,7 @@ profiles = {
'1080p': dict(width=1920, height=1080),
'720p': dict(width=1280, height=720),
'540p': dict(width=960, height=540),
'preview': dict(width=640, height=360, quality=800, skip=1)
'preview': dict(width=640, height=360, spp=1200, skip=1)
}
def save(out):
@ -71,9 +71,7 @@ def main(args, prof):
frames = frames[:args.end]
frames = frames[args.start::gprof.skip+1]
if args.resume:
m = 0
if args.flame.name != '-':
m = os.path.getmtime(args.flame.name)
m = os.path.getmtime(args.flame)
frames = (f for f in frames
if not os.path.isfile(f[0]) or m > os.path.getmtime(f[0]))