diff --git a/src/sample.ts b/src/sample.ts index 5f407cd..1e2947a 100644 --- a/src/sample.ts +++ b/src/sample.ts @@ -114,11 +114,11 @@ export class VideoSample { * in `init`. */ constructor( - data: BufferSource, + data: AllowSharedBufferSource, init: SetRequired ); constructor( - data: VideoFrame | CanvasImageSource | BufferSource, + data: VideoFrame | CanvasImageSource | AllowSharedBufferSource, init?: VideoSampleInit, ) { if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {