Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e4f5d4c3b697790dca548dd3d6bcd4a9e28974f3
      
https://github.com/WebKit/WebKit/commit/e4f5d4c3b697790dca548dd3d6bcd4a9e28974f3
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm

  Log Message:
  -----------
  Crash in [AVSampleBufferAudioRenderer enqueueSampleBuffer:]
https://bugs.webkit.org/show_bug.cgi?id=302670
rdar://164919153

Reviewed by Eric Carlson.

When we switched to using the AudioVideoRendererAVFObjC, the change from
225530@main was dropped for audio samples (we only kept the video check one).

We re-add:
"Protect against the possibility of AVStreamDataParser generating non-video or 
-audio samples in an otherwise
video- or audio-track. Check the format description attached to the sample 
before appending, and ASSERT in
debug builds and ERROR_LOG in release builds, as this is an exceptional 
condition."

* Source/WebCore/platform/graphics/avfoundation/AudioVideoRendererAVFObjC.mm:
(WebCore::AudioVideoRendererAVFObjC::enqueueSample):

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



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

Reply via email to