[Webkit-unassigned] [Bug 177884] SourceBuffer remove throws out way more content than requested

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 4 11:57:20 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=177884

--- Comment #2 from Jer Noble <jer.noble at apple.com> ---
Joey, that's exactly what's happening.  Here's a simple solution:

@@ -767,7 +767,7 @@ void SourceBuffer::removeCodedFrames(const MediaTime& start, const MediaTime& en
         divideSampleIfPossibleAtPresentationTime(end);

         auto removePresentationStart = trackBuffer.samples.presentationOrder().findSampleContainingOrAfterPresentationTime(start);
-        auto removePresentationEnd = trackBuffer.samples.presentationOrder().findSampleStartingAfterPresentationTime(end);
+        auto removePresentationEnd = trackBuffer.samples.presentationOrder().findSampleStartingOnOrAfterPresentationTime(end);
         if (removePresentationStart == removePresentationEnd)
             continue;

-- 
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/20171004/f55a02d8/attachment.html>


More information about the webkit-unassigned mailing list