w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
978 stars 136 forks source link

there is a memory leak when decode video by webcodecs repeatedly? #522

Closed yangfangfang1204 closed 2 years ago

yangfangfang1204 commented 2 years ago

when i decode viedeo by webcodecs , and close the VideoDecoder , and new the VideoDecoder, the memory is growth ? so when i stop decode , how can i release the webcodecs decoding resources ?

sandersdan commented 2 years ago

As long as both the VideoFrame objects and the VideoDecoder object are closed, memory growth is not expected. If you can reproduce such growth, please file a Chromium bug.