Skip to content

Commit 2f46fe3

Browse files
Editorial: minor typo fixes - no technical changes
2 parents ab596a0 + d820629 commit 2f46fe3

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ REMOTE := $(filter remote,$(MAKECMDGOALS))
55

66
%.html : %.src.html
77
ifndef REMOTE
8-
# When addding a new registry entry, bikeshed will error out, this allows
8+
# When adding a new registry entry, bikeshed will error out, this allows
99
# bypassing the error.
1010
ifdef WEBCODECS_IGNORE_WARNINGS
1111
@ echo "Building $@, ignoring warnings"

‎explainer.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ async function buildAndConfigureEncoders() {
237237
}
238238

239239
// Returns an object { audioDecoder, videoDecoder }.
240-
// Decoded outputs sent immediately to the coresponding encoder for re-encoding.
240+
// Decoded outputs sent immediately to the corresponding encoder for re-encoding.
241241
async function buildAndConfigureDecoders(audioEncoder, videoEncoder) {
242242
// Bind encode callbacks.
243243
const reEncodeAudio = audioEncoder.encode.bind(audioEncoder);
@@ -308,7 +308,7 @@ function paintFrameToCanvas(videoFrame) { ... }
308308
// Returns an object { audioEncoder, videoEncoder }.
309309
// Encoded outputs sent immediately to app provided muxer.
310310
async function buildAndConfigureEncoders() {
311-
// Encoded outputs immmediately sent on the wire.
311+
// Encoded outputs immediately sent on the wire.
312312
let audioEncoder = new AudioEncoder({ output: sendAudio, error: onCodecError });
313313
let videoEncoder = new VideoEncoder({ output: sendVideo, error: onCodecError });
314314

@@ -367,7 +367,7 @@ The user agent should take great care to efficiently handle expensive resources
367367
368368
Many codecs and encoder/decoder implementations are highly configurable. WebCodecs intends to support most of the configuration options available in codecs today to efficiently allow for advanced use cases.
369369
370-
A codec may be reconfigured at any time while the codec state is not "closed". Chunks/Frames passed to decode() or encode() will be decoded/encoded according to most recent preceeding call to configure().
370+
A codec may be reconfigured at any time while the codec state is not "closed". Chunks/Frames passed to decode() or encode() will be decoded/encoded according to most recent preceding call to configure().
371371
372372
WebCodecs defines a set of configuration parameters that may be used with any codec. Codec-specific parameters are defined by the codec's registration in https://www.w3.org/TR/webcodecs-codec-registry/. Support for specific settings may be implementation-specific. Supported configurations may be feature-detected using the static IsConfigSupported() methods.
373373
@@ -385,7 +385,7 @@ All of these things could be fixed by adding expanding the MSE API to explicitly
385385
386386
### Integrating with WhatWG Streams
387387
388-
An earlier design defined Encoders and Decoders as TrasformStreams from the WhatWG Streams specification. This is an appealing model; codecs are conceptually transformers with a stream of inputs and outputs. But implementing basic codec controls (configure, flush, reset) on top of Streams led to complicated designs and we were not able to hide that complexity from users (more details [here](https://docs.google.com/document/d/10S-p3Ob5snRMjBqpBf5oWn6eYij1vos7cujHoOCCCAw/edit?usp=sharing)). We've opted to instead define the codec interfaces as described above. Users can wrap these interfaces in Streams when desired.
388+
An earlier design defined Encoders and Decoders as TransformStreams from the WhatWG Streams specification. This is an appealing model; codecs are conceptually transformers with a stream of inputs and outputs. But implementing basic codec controls (configure, flush, reset) on top of Streams led to complicated designs and we were not able to hide that complexity from users (more details [here](https://docs.google.com/document/d/10S-p3Ob5snRMjBqpBf5oWn6eYij1vos7cujHoOCCCAw/edit?usp=sharing)). We've opted to instead define the codec interfaces as described above. Users can wrap these interfaces in Streams when desired.
389389
390390
## Future considerations
391391

‎samples/image-decoder/animated-gif-renderer.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
result.image.duration / 1000.0))
4343
.catch(e => {
4444
// We can end up requesting an imageIndex past the end since we're using
45-
// a ReadableStrem from fetch(), when this happens just wrap around.
45+
// a ReadableStream from fetch(), when this happens just wrap around.
4646
if (e instanceof RangeError) {
4747
imageIndex = 0;
4848
imageDecoder.decode({frameIndex: imageIndex}).then(renderImage);

0 commit comments

Comments
 (0)