summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-01 13:18:09 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-01 13:18:09 +0200
commit139284525ce7b4b2e55f9786266ef4c673995ad3 (patch)
tree6df2df407c88094885695a8c224e99398041787e
parentdd20c2c92469b5fe38c4896a8ce0cc41148cf6e2 (diff)
endswith
-rw-r--r--run.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/run.py b/run.py
index 09ca983..efb31b9 100644
--- a/run.py
+++ b/run.py
@@ -211,9 +211,8 @@ def store_frames(frames, outputPath, opt, inputFirst=None, inputSecond=None):
def pad_frames(writer, base_path, start, end):
for index in range(start, end):
- fn = os.path.join(base_path, "frame_{:0>5}.png".format(int(index + start)))
+ fn = os.path.join(base_path, "frame_{:0>5}.png".format(int(index)))
if os.path.exists(fn):
- print(fn)
img = PIL.Image.open(fn)
writer.write_frame(img)