Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(windows): guard WGC frame extension fps

wiiiii123bb97ffc53a20
diff --git a/electron/native/bin/win32-x64/helpers-manifest.json b/electron/native/bin/win32-x64/helpers-manifest.json
index d89ffe42..28335972 100644
--- a/electron/native/bin/win32-x64/helpers-manifest.json
+++ b/electron/native/bin/win32-x64/helpers-manifest.json
@@ -5,10 +5,10 @@
"helpers": {
"wgc-capture": {
"binaryName": "wgc-capture.exe",
- "binarySha256": "a04ecf49a5c0b9b92dfb9cd3aa1468178f7a144ac8b78b433e99b34425e35eac",
+ "binarySha256": "78a15935cad651c06ec64df3cabf8945a0d66e647e3eb97dfe75cd4c90d66564",
"sourceDir": "electron/native/wgc-capture",
- "sourceFingerprint": "ef3602f1641538a9a19def9da84f1fcd8e37eb53f3e55c1ddf46f26ba75eb54c",
- "updatedAt": "2026-05-22T08:56:01.149Z"
+ "sourceFingerprint": "504f3447cf64455a5c7ab1831e4257aee483c5714e714d0e020427e4c491e5eb",
+ "updatedAt": "2026-05-22T10:06:11.293Z"
},
"cursor-monitor": {
"binaryName": "cursor-monitor.exe",
diff --git a/electron/native/bin/win32-x64/wgc-capture.exe b/electron/native/bin/win32-x64/wgc-capture.exe
index 87fed123..f38fee1d 100644
Binary files a/electron/native/bin/win32-x64/wgc-capture.exe and b/electron/native/bin/win32-x64/wgc-capture.exe differ
diff --git a/electron/native/wgc-capture/src/mf_encoder.cpp b/electron/native/wgc-capture/src/mf_encoder.cpp
index b84eacba..66ec6ad8 100644
--- a/electron/native/wgc-capture/src/mf_encoder.cpp
+++ b/electron/native/wgc-capture/src/mf_encoder.cpp
@@ -252,6 +252,7 @@ bool MFEncoder::extendLastFrameToLocked(int64_t timestampHns) {
if (lastFrameBuffer_.empty()) return false;
if (lastSampleTimeHns_ < 0) return false;
+ if (fps_ <= 0) return false;
const int64_t frameDurationHns = 10000000LL / fps_;
if (frameDurationHns <= 0) return false;
if (timestampHns <= lastSampleTimeHns_ + frameDurationHns) {