Fix: Omitting the last chunk problem in comp_unaware mode

This commit is contained in:
J.P Lee
2023-12-07 17:00:38 +09:00
parent 64c445f073
commit 2b98af7b19

View File

@@ -573,10 +573,15 @@ if __name__ == "__main__":
print(f"## last processed {end:.2f}s",file=logfile,flush=True)
beg = end
end += min_chunk
if end >= duration:
break
beg = end
if end + min_chunk > duration:
end = duration
else:
end += min_chunk
now = duration
else: # online = simultaneous mode