Skip to content

Commit c2b5b6c

Browse files
committed
pass the buffer?
1 parent 57b83f1 commit c2b5b6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/dec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ return {
227227
if (size != rect.width * rect.height * 4) {
228228
format = vf.format;
229229
}
230-
_workers[_nextWorker].postMessage({ type: 'proc', pixels: buff, format: format, width: rect.width, height: rect.height });
230+
_workers[_nextWorker].postMessage({ type: 'proc', pixels: buff, format: format, width: rect.width, height: rect.height }, [buff.buffer]);
231231
if (_captureNextFrame == 1) {
232232
_captureNextFrame = 0;
233233
Dec.download_bytes(buff, rect.width + "x" + rect.height + "x" + _counter + ".rgba");

0 commit comments

Comments
 (0)