Close VideoFrame after H.264 detection
Otherwise browser will complain when it is garbage collected.
This commit is contained in:
parent
154653523c
commit
8edb3d282e
|
@ -117,7 +117,7 @@ async function _checkWebCodecsH264DecodeSupport() {
|
|||
let error = null;
|
||||
|
||||
let decoder = new VideoDecoder({
|
||||
output: (frame) => { gotframe = true; },
|
||||
output: (frame) => { gotframe = true; frame.close(); },
|
||||
error: (e) => { error = e; },
|
||||
});
|
||||
let chunk = new EncodedVideoChunk({
|
||||
|
|
Loading…
Reference in New Issue