[wpt-sync] Sync PR 63508 - Preserve durations for unset or duplicate timestamps during encoding
Categories
(Core :: Audio/Video: Web Codecs, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63508 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63508
Details from upstream follow.
Dale Curtis <dalecurtis@chromium.org> wrote:
Preserve durations for unset or duplicate timestamps during encoding
VideoEncoder previously tracked per-frame metadata in a base::flat_map
keyed by timestamp, defaulted unset frame durations to 0
(base::TimeDelta()), and left DecoderBuffer duration at its default of 0
instead of media::kNoTimestamp when duration was zero or unset. This
caused input frames without a duration to produce EncodedVideoChunks
with duration 0 instead of null, and caused frames with duplicate or
reordered timestamps to overwrite or misassociate metadata. Pending
metadata was also not cleared on reset().Default unset frame durations to media::kNoTimestamp, store
FrameMetadata in input order in a Vector, consume the first matching
entry in CallOutputCallback() while evicting unmatched entries older
than the 16-frame reordering window, and clear pending metadata on
reset().Fixed: 561828156
Change-Id: Ie05a8d1556a7651542c9076b71d39e3824fc7c08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8537870
Auto-Submit: Dale Curtis \<dalecurtis@chromium.org>
Commit-Queue: Eugene Zemtsov \<eugene@chromium.org>
Reviewed-by: Eugene Zemtsov \<eugene@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1715855}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=103224
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 10 subtests
Status Summary
Firefox
OK : 2
PASS: 18
FAIL: 2
Chrome
OK : 2
PASS: 18
FAIL: 2
Safari
OK : 2
PASS: 20
Links
Details
New Tests That Don't Pass
- /webcodecs/video-encoder.https.any.worker.html [wpt.fyi]
- Encode video preserves unset, zero, and duplicate-timestamp durations:
FAIL(Chrome:FAIL, Safari:PASS)
- Encode video preserves unset, zero, and duplicate-timestamp durations:
- /webcodecs/video-encoder.https.any.html [wpt.fyi]
- Encode video preserves unset, zero, and duplicate-timestamp durations:
FAIL(Chrome:FAIL, Safari:PASS)
- Encode video preserves unset, zero, and duplicate-timestamp durations:
https://hg.mozilla.org/mozilla-central/rev/d1286a4ce2da
https://hg.mozilla.org/mozilla-central/rev/f613bdbb9b25
Description
•