Closed Bug 2080536 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63508 - Preserve durations for unset or duplicate timestamps during encoding

Categories

(Core :: Audio/Video: Web Codecs, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
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}

Component: web-platform-tests → Audio/Video: Web Codecs
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.