From 4e6a8a592e3c4f610203ebf6a8d15b8fb12346da Mon Sep 17 00:00:00 2001 From: Javanaut Date: Sat, 21 Oct 2023 12:17:40 +0200 Subject: [PATCH] fix datatype crop --- bin/ffx.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/ffx.py b/bin/ffx.py index 9f820be..8678024 100755 --- a/bin/ffx.py +++ b/bin/ffx.py @@ -92,8 +92,8 @@ if dtsTokens: if not dtsBandwidth.endswith('k'): dtsBandwidth += "k" -cropStart = -1 -cropLength = -1 +cropStart = '' +cropLength = '' cropTokens = [c for c in sys.argv if c.startswith('crop=')] if cropTokens: cropString = cropTokens[0].split('=')[1] @@ -167,7 +167,7 @@ for quality in qualities: else: commandSequence += generateOutputTokens(outputFilename) - if cropStart > -1: + if cropStart: commandSequence += generateCropTokens(cropStart, cropLength) @@ -181,7 +181,7 @@ for quality in qualities: commandSequence1 = commandTokens + generateVP9Pass1Tokens(quality) + nullTokens - if cropStart > -1: + if cropStart: commandSequence += generateCropTokens(cropStart, cropLength) @@ -192,7 +192,7 @@ for quality in qualities: commandSequence2 = commandTokens + mappingTokens + generateVP9Pass2Tokens(quality) + audioTokens - if cropStart > -1: + if cropStart: commandSequence += generateCropTokens(cropStart, cropLength)