Skip to content

Commit

Permalink
Fix end frame replacement to acknowledge the chunk size.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosfelgarcia committed May 22, 2024
1 parent d6e859e commit 58f28b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public RunFrame prepareRqdRunFrame(VirtualProc proc, DispatchFrame frame) {
FrameSet fs = new FrameSet(frame.range);
int startFrameIndex = fs.index(frameNumber);
String frameSpec = fs.getChunk(startFrameIndex, frame.chunkSize);
int lastIndex = fs.size() - 1;

RunFrame.Builder builder = RunFrame.newBuilder()
.setShot(frame.shot)
Expand Down Expand Up @@ -409,7 +410,7 @@ public RunFrame prepareRqdRunFrame(VirtualProc proc, DispatchFrame frame) {
.replaceAll("#ZFRAME#", zFrameNumber)
.replaceAll("#IFRAME#", String.valueOf(frameNumber))
.replaceAll("#FRAME_START#", String.valueOf(frameNumber))
.replaceAll("#FRAME_END#", String.valueOf(frameNumber+frame.chunkSize-1))
.replaceAll("#FRAME_END#", String.valueOf(Math.min((frameNumber+frame.chunkSize-1), fs.get(lastIndex))))
.replaceAll("#FRAME_CHUNK#", String.valueOf(frame.chunkSize))
.replaceAll("#LAYER#", frame.layerName)
.replaceAll("#JOB#", frame.jobName)
Expand Down

0 comments on commit 58f28b3

Please sign in to comment.