error handling for zero bytes
This commit is contained in:
@@ -58,6 +58,9 @@ func main() {
|
|||||||
makeOutputDir()
|
makeOutputDir()
|
||||||
defer clearOutputDir()
|
defer clearOutputDir()
|
||||||
|
|
||||||
generateGlitchedSequence(sourceFile, fileExt, numCopies, shitSize, iterations, int32(chanceToRandom))
|
err = generateGlitchedSequence(sourceFile, fileExt, numCopies, shitSize, iterations, int32(chanceToRandom))
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
ffmpegGenerateMP4(fileExt)
|
ffmpegGenerateMP4(fileExt)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user