fix joining audio only timelines

This commit is contained in:
j 2015-11-02 09:34:41 +01:00
parent d96f98e4cf
commit 4bdce55364

View file

@ -116,8 +116,9 @@ def join_tiles(source_paths, target_path):
for info in sorted(file_info, key=lambda x: x['index']):
mode = info['mode']
source_files[mode].append(path + info['file'])
if mode == modes[0]:
width = Image.open(source_files[mode][-1]).size[0]
modes = [m for m in modes if source_files[m]]
for f in source_files[modes[0]]:
width = Image.open(f).size[0]
durations[i] += width / fps
frame_n += width
large_tile_n = int(math.ceil(frame_n / large_tile_w))