Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bcde08d1581e66f651880e5903c782332fa5bc67
      
https://github.com/WebKit/WebKit/commit/bcde08d1581e66f651880e5903c782332fa5bc67
  Author: Brent Fulgham <[email protected]>
  Date:   2023-12-04 (Mon, 04 Dec 2023)

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

  Log Message:
  -----------
  CMSampleBufferGetSampleAttachmentsArray return value is not checked for 
nullptr
https://bugs.webkit.org/show_bug.cgi?id=262650
<rdar://116485149>

Reviewed by Jer Noble.

CMSampleBufferGetSampleAttachmentsArray declares that its return value as 
CM_NULLABLE,
to warn users that a nullptr value might be returned.

This patch adds the missing nullptr check.

* Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm:
(WebCore::MediaSampleAVFObjC::createNonDisplayingCopy const):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to