Skip to content

Commit aa55239

Browse files
abobadalecurtis
authored andcommitted
Fix cfg.svc bug
1 parent 9f26adc commit aa55239

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/encode-decode-worker/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2>WebCodecs in Worker</h2>
6666
<div id="rateInput">
6767
<label for="rate">bitrate: </label>
6868
<input type="text" name="rate" id="rate"
69-
value=2000000>
69+
value=1000000>
7070
</div>
7171

7272
<div id="keyInput">

samples/encode-decode-worker/js/stream_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class pipeline {
176176
controller.enqueue(configChunk);
177177
}
178178
chunk.temporalLayerId = 0;
179-
if (cfg.svc.temporalLayerId) {
179+
if (cfg.svc) {
180180
chunk.temporalLayerId = cfg.svc.temporalLayerId;
181181
}
182182
this.seqNo++;

0 commit comments

Comments
 (0)