This commit is contained in:
minjaesong
2025-09-15 23:47:28 +09:00
parent 4c0a282de7
commit 4bb234a89b
3 changed files with 259 additions and 79 deletions

View File

@@ -564,7 +564,7 @@ let blockDataPtr = sys.malloc(560*448*3)
// Playback loop - properly adapted from TEV
try {
let t1 = sys.nanoTime()
while (!stopPlay && seqread.getReadCount() < FILE_LENGTH && frameCount < header.totalFrames) {
while (!stopPlay && seqread.getReadCount() < FILE_LENGTH && (header.totalFrames == 0 || header.totalFrames > 0 && frameCount < header.totalFrames)) {
// Handle interactive controls
if (interactive) {