forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1849271 - Flip test when checking for the presence of optional co…
…lorspace members on a VideoDecoderConfig. r=media-playback-reviewers,alwu Differential Revision: https://phabricator.services.mozilla.com/D186530
- Loading branch information
Showing
6 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<html class="reftest-wait"> | ||
<script> | ||
var cfg = { | ||
codec: "vp8", | ||
colorSpace: { primaries: "bt709" }, | ||
}; | ||
var decoder = new VideoDecoder({ | ||
output: () => {}, | ||
error: e => { | ||
document.documentElement.removeAttribute("class"); | ||
}, | ||
}); | ||
decoder.configure(cfg); | ||
try { | ||
decoder.decode( | ||
new EncodedVideoChunk({ | ||
type: "key", | ||
timestamp: 0, | ||
duration: 10, | ||
data: new Uint8Array(10), | ||
}) | ||
); | ||
} catch (e) { | ||
document.documentElement.removeAttribute("class"); | ||
} | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[DEFAULT] | ||
subsuite = media | ||
tags = webcodecs | ||
prefs = | ||
dom.media.webcodecs.enabled=true | ||
|
||
load 1849271.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters