Skip to content

Commit

Permalink
forgot to handle negative offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Apr 20, 2023
1 parent cdad376 commit 0953aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffsubsync/ffsubsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def try_sync(
if args.output_encoding != "same":
out_subs = out_subs.set_encoding(args.output_encoding)
suppress_output_thresh = args.suppress_output_if_offset_less_than
if offset_seconds >= (suppress_output_thresh or 0):
if offset_seconds >= (suppress_output_thresh or float("-inf")):
logger.info("writing output to {}".format(srtout or "stdout"))
out_subs.write_file(srtout)
else:
Expand Down

0 comments on commit 0953aa2

Please sign in to comment.