| Summary: | SourceBuffer.timestampOffset usage doesn't behave correctly with webm content. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://jyavenard.github.io/htmltests/tests/mse_webm/vorbis_timestampOffset.html | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=252886 https://bugs.webkit.org/show_bug.cgi?id=253027 |
||
|
Description
Jean-Yves Avenard [:jya]
2023-02-22 15:17:29 PST
The reason for this is that the libwebmparser enforces checking the size of the WebM Segment parent. In this particular case the Segment' size is 13705 bytes and the single cluster is 9992 bytes. When we append a cluster a second time, the overall size becomes larger than the parent Segment could fit and the parser aborts. Considering a webm is only ever have made of one Segment, and that the matryoshka specification allows for an element size to be unknown and other browsers ignore that size, the simplest way to fix this would be to ignore the Segment's size. This would allow to add as many cluster as one wants, regardless of the init segment added. Pull request: https://github.com/WebKit/WebKit/pull/10565 Committed 260822@main (bee529142266): <https://commits.webkit.org/260822@main> Reviewed commits have been landed. Closing PR #10565 and removing active labels. |