add rounding to duration

This commit is contained in:
jonathan 2021-05-31 18:03:00 +02:00
parent 722ad8c650
commit 8e9af7f65f
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ def handle_list_init(node):
delta, total_delta = get_delta(node['begin'])
seek = abs(delta) + node['seek'] if abs(delta) + node['seek'] >= 1 else 0
seek = round(seek, 3)
if node['out'] - seek > total_delta:
out = total_delta + seek

View File

@ -853,6 +853,7 @@ def gen_dummy(duration):
generate a dummy clip, with black color and empty audio track
"""
color = '#121212'
duration = round(duration, 3)
# IDEA: add noise could be an config option
# noise = 'noise=alls=50:allf=t+u,hue=s=0'
return [