From 093a9dc26cb1134329b9f73333a0f22ff96a5c58 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Fri, 2 May 2025 20:28:30 +0900 Subject: [PATCH] playmov: frameskip re-enabled UNLESS the video is encoded with ipf-delta --- assets/disk0/tvdos/bin/playmov.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/disk0/tvdos/bin/playmov.js b/assets/disk0/tvdos/bin/playmov.js index e23c232..cd334dc 100644 --- a/assets/disk0/tvdos/bin/playmov.js +++ b/assets/disk0/tvdos/bin/playmov.js @@ -101,6 +101,7 @@ if (interactive) { let notifHideTimer = 0 const NOTIF_SHOWUPTIME = 3000000000 let [cy, cx] = con.getyx() +let doFrameskip = true let errorlevel = 0 try { let t1 = sys.nanoTime() @@ -122,7 +123,7 @@ while (!stopPlay && seqread.getReadCount() < FILE_LENGTH) { frameUnit += 1 } - if (frameUnit > 1) frameUnit = 1 // comment to enable frameskip + if (!doFrameskip) frameUnit = 1 if (frameUnit != 0) { // skip frames if necessary @@ -214,6 +215,8 @@ while (!stopPlay && seqread.getReadCount() < FILE_LENGTH) { } // iPF1d else if (packetType == 516) { + doFrameskip = false // disable frameskip for delta-coding + let payloadLen = seqread.readInt() if (framesRead >= FRAME_COUNT) {