[Webkit-unassigned] [Bug 226481] [MSE] When mediaSample of the same pts and dts are received consecutively, the mediaSample received later are discarded.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 1 21:13:24 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226481
--- Comment #5 from Toshio Ogasawara <toshio.ogasawara at access-company.com> ---
>+ // When there are MediaSamples in track buffer which have the same PTS and DTS, all of them except for the last MediaSample should be removed.
>+ if (trackBuffer.lastDecodeTimestamp.isValid() && decodeTimestamp == trackBuffer.lastDecodeTimestamp) {
>+ auto iterPair = trackBuffer.samples.presentationOrder().findSamplesBetweenPresentationTimes(presentationTimestamp, frameEndTimestamp);
>+ if (iterPair.first != trackBuffer.samples.presentationOrder().end())
>+ erasedSamples.addRange(iterPair.first, iterPair.second);
>+ }
>+
> // 1.15 Remove decoding dependencies of the coded frames removed in the previous step:
> DecodeOrderSampleMap::MapType dependentSamples;
> if (!erasedSamples.empty()) {
Previously added samples can be ranged with erasedSamples.addRange () and removed with the next step, "1.15 Remove decoding dependencies of the coded frames removed in the previous step:".
Samples with the same PTS and DTS get put in the trackBuffer by removing the previously added sample.
--
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/20210602/e7037d24/attachment.htm>
More information about the webkit-unassigned
mailing list