summaryrefslogtreecommitdiffstats
path: root/dom/media/webcodecs/crashtests/1889831.html
blob: e88a028d161290f6fef3e96021df34099670494f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<script>
document.addEventListener("DOMContentLoaded", async () => {
  const decoder = new VideoDecoder({
    'output': (e) => {},
    'error': (e) => {},
  });
  decoder.configure({
    codec: 'vp8',
    codedWidth: 320,
    codedHeight: 240,
    visibleRect: {x: 0, y: 0, width: 320, height: 240},
    displayWidth: 320,
    displayHeight: 240,
  });
  decoder.decode(new EncodedVideoChunk(
    {type: 'key', timestamp: 0, data: new ArrayBuffer(0)}));
  decoder.decode(new EncodedVideoChunk(
    {type: 'key', timestamp: 1, data: new ArrayBuffer(0)}));
})
</script>