[Webkit-unassigned] [Bug 237780] New: [MSE][SourceBuffer] Fix removal of paddings from buffered range
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 11 06:38:41 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=237780
Bug ID: 237780
Summary: [MSE][SourceBuffer] Fix removal of paddings from
buffered range
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: eocanha at igalia.com
This change fixes high memory usage in apps that do TS -> MP4 transmuxing. The high memory usage is observed in some streams that have a slight overlap in media samples (usually happens on video quality change), when application applies its own logic for samples removal (that looks like sourceBuffer.remove(sourceBuffer.buffered.start(0), ...)).
Current implementation reports a buffered range that is inconsistent with the actual samples that are still in the buffer (after range removal). The reported range excludes one sample, allowing that sample to "leak". Such a sample holds a reference to the entire appended chunk (due to in-place demuxing in GStreamer MSE backend), but it accounts only for a small size in the buffer. So eviction algorithm doesn't kick in.
See the full discussion of this problem here:
https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/797#discussion_r818973424
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220311/fd559dc3/attachment.htm>
More information about the webkit-unassigned
mailing list