Skip to content

Commit c846f98

Browse files
committed
Fix close algorithm for non-null VideoFrame timestamps.
Timestamp shouldn't be null anymore, so remove language around setting it to null.
1 parent adf65f4 commit c846f98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.src.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@
20372037
run these steps:
20382038
1. If {{AudioEncoderConfig/codec}} is not a <a>valid codec string</a>, return
20392039
`false`.
2040-
2. If the {{AudioEncoderConfig}} has a codec-specific extension and the corresponding
2040+
2. If the {{AudioEncoderConfig}} has a codec-specific extension and the corresponding
20412041
registration in the [[WEBCODECS-CODEC-REGISTRY]] defines steps to check whether
20422042
the extension is a valid extension, return the result of running those steps.
20432043
3. Return `true`.
@@ -3863,9 +3863,7 @@
38633863
{{VideoFrame/[[visible top]]}}, {{VideoFrame/[[visible width]]}},
38643864
{{VideoFrame/[[visible height]]}}, {{VideoFrame/[[display width]]}},
38653865
and {{VideoFrame/[[display height]]}}.
3866-
5. Assign `null` to |frame|'s {{VideoFrame/[[duration]]}} and
3867-
{{VideoFrame/[[timestamp]]}}.
3868-
6. Assign a new {{VideoFrameMetadata}} to |frame|.{{VideoFrame/[[metadata]]}}.
3866+
5. Assign a new {{VideoFrameMetadata}} to |frame|.{{VideoFrame/[[metadata]]}}.
38693867

38703868
: <dfn for=VideoFrame>Parse VideoFrameCopyToOptions</dfn> (with |options|)
38713869
:: 1. Let |defaultRect| be the result of performing the getter steps for

0 commit comments

Comments
 (0)