Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3c92e0f90a99c586ab195e814436c08cad02b37a
      
https://github.com/WebKit/WebKit/commit/3c92e0f90a99c586ab195e814436c08cad02b37a
  Author: Jean-Yves Avenard <[email protected]>
  Date:   2025-10-09 (Thu, 09 Oct 2025)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/CMUtilities.mm

  Log Message:
  -----------
  [cocoa] MediaSample with mp3 content can't be deserialised properly.
https://bugs.webkit.org/show_bug.cgi?id=300472
rdar://162324480

Reviewed by Eric Carlson.

createFormatDescriptionFromTrackInfo expected all MediaSample but those
with PCM content to have a cookieData; this isn't the case with MP3.
We now only requires the cookieData for Opus and Vorbis which we know for
certain that they requires that information.
For codecs may require it, but that do not have it, it will be handled by
createAudioFormatDescription's call to CMAudioFormatDescriptionCreate

Covered by existing test (which found the problem)
* Source/WebCore/platform/graphics/cocoa/CMUtilities.mm:
(WebCore::audioStreamDescriptionFromAudioInfo):
(WebCore::createFormatDescriptionFromTrackInfo):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to