add rounding to duration
This commit is contained in:
parent
722ad8c650
commit
8e9af7f65f
@ -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
|
||||
|
@ -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 [
|
||||
|
Loading…
x
Reference in New Issue
Block a user