Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 34045e1b94345e7802aafa757895fb7aa226a380
      
https://github.com/WebKit/WebKit/commit/34045e1b94345e7802aafa757895fb7aa226a380
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/TrackBuffer.cpp

  Log Message:
  -----------
  [MSE] TrackBuffer::reenqueueMediaForTime should not enqueue content before 
the current playback position
https://bugs.webkit.org/show_bug.cgi?id=316087
rdar://problem/178517738

Reviewed by Eric Carlson.

When a mutation to the source buffer caused the currently-enqueued samples
to be re-enqueued from the playback position, the sample whose range
contained that position was enqueued whole. For container formats that pack
multiple sub-entries per sample (e.g. a single audio sample buffer covering
many AAC frames), this meant sub-entries with presentation times before the
playback position were re-enqueued for presentation.

Split that sample at `time` when the sample is divisable and strictly
straddles it, and enqueue only the tail (sub-entries that contain or are
after `time`).

* Source/WebCore/platform/graphics/TrackBuffer.cpp:
(WebCore::TrackBuffer::reenqueueMediaForTime):

Canonical link: https://commits.webkit.org/314461@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to