Skip to content

Commit 7a7f6c9

Browse files
authored
Merge pull request #863 from jyavenard/wrong_step_indexing
Fix various step counts in original source.
2 parents 51e46c3 + a73e6d5 commit 7a7f6c9

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

index.src.html

+20-20
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
[=Running a control message=] to configure the decoder means running
396396
these steps:
397397
1. Assign `true` to {{AudioDecoder/[[message queue blocked]]}}.
398-
1. Enqueue the following steps to {{AudioDecoder/[[codec work queue]]}}:
398+
2. Enqueue the following steps to {{AudioDecoder/[[codec work queue]]}}:
399399
1. Let |supported| be the result of running the <a>Check Configuration
400400
Support</a> algorithm with |config|.
401401
2. If |supported| is `false`, [=queue a task=] to run the <a>Close
@@ -730,7 +730,7 @@
730730
[=Running a control message=] to configure the decoder means running
731731
these steps:
732732
1. Assign `true` to {{VideoDecoder/[[message queue blocked]]}}.
733-
1. Enqueue the following steps to {{VideoDecoder/[[codec work queue]]}}:
733+
2. Enqueue the following steps to {{VideoDecoder/[[codec work queue]]}}:
734734
1. Let |supported| be the result of running the <a>Check Configuration
735735
Support</a> algorithm with |config|.
736736
2. If |supported| is `false`, [=queue a task=] to run the <a>Close
@@ -1462,7 +1462,7 @@
14621462
[=Running a control message=] to configure the encoder means performing
14631463
these steps:
14641464
1. Assign `true` to {{VideoEncoder/[[message queue blocked]]}}.
1465-
1. Enqueue the following steps to {{VideoEncoder/[[codec work queue]]}}:
1465+
2. Enqueue the following steps to {{VideoEncoder/[[codec work queue]]}}:
14661466
1. Let |supported| be the result of running the <a>Check Configuration
14671467
Support</a> algorithm with |config|.
14681468
2. If |supported| is `false`, [=queue a task=] to run the <a>Close
@@ -2948,7 +2948,7 @@
29482948
|options|.{{AudioDataCopyToOptions/format}} to |destFormat|.
29492949
5. Let |bytesPerSample| be the number of bytes per sample, as defined by
29502950
the |destFormat|.
2951-
4. Return the product of multiplying |bytesPerSample| by
2951+
6. Return the product of multiplying |bytesPerSample| by
29522952
|copyElementCount|.
29532953

29542954
: <dfn method for=AudioData>copyTo(|destination|, |options|)</dfn>
@@ -4002,37 +4002,37 @@
40024002
2. If |init|.{{VideoFrameInit/alpha}} is {{AlphaOption/discard}},
40034003
assign |otherFrame|.{{VideoFrame/format}}'s [=equivalent opaque format=]
40044004
|format|.
4005-
1. Let |validInit| be the result of running the [=Validate VideoFrameInit=]
4005+
3. Let |validInit| be the result of running the [=Validate VideoFrameInit=]
40064006
algorithm with |format| and |otherFrame|'s
40074007
{{VideoFrame/[[coded width]]}} and {{VideoFrame/[[coded height]]}}.
4008-
2. If |validInit| is `false`, throw a {{TypeError}}.
4009-
3. Let |resource| be the [=media resource=] referenced by |otherFrame|'s
4008+
4. If |validInit| is `false`, throw a {{TypeError}}.
4009+
5. Let |resource| be the [=media resource=] referenced by |otherFrame|'s
40104010
{{VideoFrame/[[resource reference]]}}.
4011-
4. Assign a new reference for |resource| to |frame|'s
4011+
6. Assign a new reference for |resource| to |frame|'s
40124012
{{VideoFrame/[[resource reference]]}}.
4013-
5. Assign the following attributes from |otherFrame| to |frame|:
4013+
7. Assign the following attributes from |otherFrame| to |frame|:
40144014
{{VideoFrame/codedWidth}}, {{VideoFrame/codedHeight}},
40154015
{{VideoFrame/colorSpace}}.
4016-
6. Let |defaultVisibleRect| be the result of performing the getter steps
4016+
8. Let |defaultVisibleRect| be the result of performing the getter steps
40174017
for {{VideoFrame/visibleRect}} on |otherFrame|.
4018-
7. Let |baseRotation| and |baseFlip| be |otherFrame|'s
4018+
9. Let |baseRotation| and |baseFlip| be |otherFrame|'s
40194019
{{VideoFrame/[[rotation]]}} and {{VideoFrame/[[flip]]}}, respectively.
4020-
8. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s
4020+
10. Let |defaultDisplayWidth| and |defaultDisplayHeight| be |otherFrame|'s
40214021
{{VideoFrame/[[display width]]}} and {{VideoFrame/[[display height]]}},
40224022
respectively.
4023-
9. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=]
4023+
11. Run the [=VideoFrame/Initialize Visible Rect, Orientation, and Display Size=]
40244024
algorithm with |init|, |frame|, |defaultVisibleRect|, |baseRotation|,
40254025
|baseFlip|, |defaultDisplayWidth|, and |defaultDisplayHeight|.
4026-
10. If {{VideoFrameInit/duration}} [=map/exists=] in |init|, assign it to
4026+
12. If {{VideoFrameInit/duration}} [=map/exists=] in |init|, assign it to
40274027
|frame|'s {{VideoFrame/[[duration]]}}. Otherwise, assign
40284028
|otherFrame|.{{VideoFrame/duration}} to
40294029
|frame|'s {{VideoFrame/[[duration]]}}.
4030-
11. If {{VideoFrameInit/timestamp}} [=map/exists=] in |init|, assign it to
4030+
13. If {{VideoFrameInit/timestamp}} [=map/exists=] in |init|, assign it to
40314031
|frame|'s {{VideoFrame/[[timestamp]]}}. Otherwise, assign
40324032
|otherFrame|'s {{VideoFrame/timestamp}} to
40334033
|frame|'s {{VideoFrame/[[timestamp]]}}.
4034-
12. Assign |format| to |frame|.{{VideoFrame/[[format]]}}.
4035-
13. Assign the result of calling [=Copy VideoFrame metadata=]
4034+
14. Assign |format| to |frame|.{{VideoFrame/[[format]]}}.
4035+
15. Assign the result of calling [=Copy VideoFrame metadata=]
40364036
with |init|'s {{VideoFrameInit/metadata}} to |frame|.{{VideoFrame/[[metadata]]}}.
40374037

40384038
: <dfn for=VideoFrame>Initialize Frame With Resource</dfn> (with
@@ -5459,15 +5459,15 @@
54595459
`"processed"`.
54605460
3. Otherwise, assign the {{ImageDecoder/[[codec implementation]]}} internal
54615461
slot with an implementation supporting `init.type`
5462-
3. Assign `true` to {{ImageDecoder/[[message queue blocked]]}}.
5463-
3. Enqueue the following steps to the {{ImageDecoder/[[codec work queue]]}}:
5462+
4. Assign `true` to {{ImageDecoder/[[message queue blocked]]}}.
5463+
5. Enqueue the following steps to the {{ImageDecoder/[[codec work queue]]}}:
54645464
1. Configure {{ImageDecoder/[[codec implementation]]}} in accordance
54655465
with the values given for {{ImageDecoderInit/colorSpaceConversion}},
54665466
{{ImageDecoderInit/desiredWidth}}, and
54675467
{{ImageDecoderInit/desiredHeight}}.
54685468
2. Assign `false` to {{ImageDecoder/[[message queue blocked]]}}.
54695469
3. [=Queue a task=] to [=Process the control message queue=].
5470-
4. Return `"processed"`.
5470+
6. Return `"processed"`.
54715471

54725472
[=Running a control message=] to <dfn>decode track metadata</dfn> means
54735473
running these steps:

0 commit comments

Comments
 (0)