Merge pull request #40 from lifefeel/main
Fix: Omitting the last chunk problem in comp_unaware mode
This commit is contained in:
commit
ff794b4d32
1 changed files with 7 additions and 2 deletions
|
|
@ -573,10 +573,15 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
print(f"## last processed {end:.2f}s",file=logfile,flush=True)
|
print(f"## last processed {end:.2f}s",file=logfile,flush=True)
|
||||||
|
|
||||||
beg = end
|
|
||||||
end += min_chunk
|
|
||||||
if end >= duration:
|
if end >= duration:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
beg = end
|
||||||
|
|
||||||
|
if end + min_chunk > duration:
|
||||||
|
end = duration
|
||||||
|
else:
|
||||||
|
end += min_chunk
|
||||||
now = duration
|
now = duration
|
||||||
|
|
||||||
else: # online = simultaneous mode
|
else: # online = simultaneous mode
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue