@@ -459,9 +459,8 @@ interface RTCEncodedVideoFrame {
459459 1. Set this.`[[type]] ` to |originalFrame|.`[[type]] `.
460460 1. Let this.`[[data]] ` be the result of [[CloneArrayBuffer]] (|originalFrame|.`[[data]] `, 0, |originalFrame|.`[[data]] `.`[[ArrayBufferByteLength]] `).
461461 1. Let `[[metadata]] ` represent the metadata associated with this newly constructed frame.
462- 1. For each {`[[key]] `,`[[value]] `} pair of |originalFrame|.`[[getMetadata()]] `, set `[[metadata]] `.`[[key]] ` to `[[value]] `.
463- 1. For each {`[[key]] `,`[[value]] `} pair of |options|.`[metadata] `, set `[[metadata]] `.`[[key]] ` to `[[value]] `.
464- <p class="note"> This does a "deep-copy" here.</p>
462+ 1. For each {`[[key]] `,`[[value]] `} pair of |originalFrame|.`[[getMetadata()]] `, set `[[metadata]] `.`[[key]] ` to a deep copy of `[[value]] `.
463+ 1. For each {`[[key]] `,`[[value]] `} pair of |options|.`[metadata] `, set `[[metadata]] `.`[[key]] ` to a deep copy of `[[value]] `.
465464
466465 </p>
467466 </dd>
@@ -688,9 +687,8 @@ interface RTCEncodedAudioFrame {
688687
689688 1. Let this.`[[data]] ` be the result of [[CloneArrayBuffer]] (|originalFrame|.`[[data]] `, 0, |originalFrame|.`[[data]] `.`[[ArrayBufferByteLength]] `).
690689 1. Let `[[metadata]] ` represent the metadata associated with this newly constructed frame.
691- 1. For each {`[[key]] `,`[[value]] `} pair of |originalFrame|.`[[getMetadata()]] `, set `[[metadata]] `.`[[key]] ` to `[[value]] `.
692- 1. For each {`[[key]] `,`[[value]] `} pair of |options|.`[metadata] `, set `[[metadata]] `.`[[key]] ` to `[[value]] `.
693- <p class="note"> This does a "deep-copy" here.</p>
690+ 1. For each {`[[key]] `,`[[value]] `} pair of |originalFrame|.`[[getMetadata()]] `, set `[[metadata]] `.`[[key]] ` to a deep copy of `[[value]] `.
691+ 1. For each {`[[key]] `,`[[value]] `} pair of |options|.`[metadata] `, set `[[metadata]] `.`[[key]] ` to a deep copy of `[[value]] `.
694692
695693 </p>
696694 </dd>
0 commit comments