mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Small fixup
This commit is contained in:
+2
-2
@@ -114,11 +114,11 @@ export class VideoSample {
|
||||
* in `init`.
|
||||
*/
|
||||
constructor(
|
||||
data: BufferSource,
|
||||
data: AllowSharedBufferSource,
|
||||
init: SetRequired<VideoSampleInit, 'format' | 'codedWidth' | 'codedHeight' | 'timestamp'>
|
||||
);
|
||||
constructor(
|
||||
data: VideoFrame | CanvasImageSource | BufferSource,
|
||||
data: VideoFrame | CanvasImageSource | AllowSharedBufferSource,
|
||||
init?: VideoSampleInit,
|
||||
) {
|
||||
if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {
|
||||
|
||||
Reference in New Issue
Block a user