Bug 1513511 - P2. Ensure all frames are decoded. r=bryce

vp9 streams contains superframes. Ensure they are all properly handled.

Differential Revision: https://phabricator.services.mozilla.com/D14699

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jean-Yves Avenard 2018-12-17 20:30:46 +00:00
Родитель 0855e7a7da
Коммит 25657ee569
4 изменённых файлов: 35 добавлений и 0 удалений

Просмотреть файл

@ -645,6 +645,8 @@ support-files =
very-short.mp3
video-overhang.ogg
video-overhang.ogg^headers^
vp9-superframes.webm
vp9-superframes.webm^headers^
vp9.webm
vp9.webm^headers^
vp9-short.webm
@ -1229,6 +1231,7 @@ skip-if = toolkit == 'android' # android(bug 1232305)
skip-if = android_version == '17' # android(bug 1232305)
[test_volume.html]
skip-if = toolkit == 'android' # android(bug 1232305)
[test_vp9_superframes.html]
[test_vttparser.html]
skip-if = android_version == '22' # android(bug 1368010)
tags = webvtt

Просмотреть файл

@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Test that all VP9 frames are decoded (contains superframes)</title>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script class="testbody" type="text/javascript">
SimpleTest.waitForExplicitFinish();
function test() {
var video = document.createElement("video");
video.src = "vp9-superframes.webm";
video.play();
video.addEventListener("ended", function () {
vpq = video.getVideoPlaybackQuality();
is(vpq.totalVideoFrames, 120, "totalVideoFrames must contains 120 frames");
SimpleTest.finish();
});
}
addLoadEvent(function() {
test();
});
</script>
</pre>
</body>
</html>

Двоичные данные
dom/media/test/vp9-superframes.webm Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1 @@
Cache-Control: no-store