prevent negativ values
This commit is contained in:
parent
e156c7de06
commit
fb10da78ec
@ -118,7 +118,7 @@ def fade_filter(duration, seek, out, track=''):
|
||||
if seek > 0.0:
|
||||
filter_chain.append(f'{track}fade=in:st=0:d=0.5')
|
||||
|
||||
if out != duration:
|
||||
if out != duration and out - seek - 1.0 > 0:
|
||||
filter_chain.append(f'{track}fade=out:st={out - seek - 1.0}:d=1.0')
|
||||
|
||||
return filter_chain
|
||||
|
Loading…
x
Reference in New Issue
Block a user