fix datatype crop

click
Javanaut 2 years ago
parent 3be140d45a
commit 4e6a8a592e

@ -92,8 +92,8 @@ if dtsTokens:
if not dtsBandwidth.endswith('k'): if not dtsBandwidth.endswith('k'):
dtsBandwidth += "k" dtsBandwidth += "k"
cropStart = -1 cropStart = ''
cropLength = -1 cropLength = ''
cropTokens = [c for c in sys.argv if c.startswith('crop=')] cropTokens = [c for c in sys.argv if c.startswith('crop=')]
if cropTokens: if cropTokens:
cropString = cropTokens[0].split('=')[1] cropString = cropTokens[0].split('=')[1]
@ -167,7 +167,7 @@ for quality in qualities:
else: else:
commandSequence += generateOutputTokens(outputFilename) commandSequence += generateOutputTokens(outputFilename)
if cropStart > -1: if cropStart:
commandSequence += generateCropTokens(cropStart, cropLength) commandSequence += generateCropTokens(cropStart, cropLength)
@ -181,7 +181,7 @@ for quality in qualities:
commandSequence1 = commandTokens + generateVP9Pass1Tokens(quality) + nullTokens commandSequence1 = commandTokens + generateVP9Pass1Tokens(quality) + nullTokens
if cropStart > -1: if cropStart:
commandSequence += generateCropTokens(cropStart, cropLength) commandSequence += generateCropTokens(cropStart, cropLength)
@ -192,7 +192,7 @@ for quality in qualities:
commandSequence2 = commandTokens + mappingTokens + generateVP9Pass2Tokens(quality) + audioTokens commandSequence2 = commandTokens + mappingTokens + generateVP9Pass2Tokens(quality) + audioTokens
if cropStart > -1: if cropStart:
commandSequence += generateCropTokens(cropStart, cropLength) commandSequence += generateCropTokens(cropStart, cropLength)

Loading…
Cancel
Save