Changeset 285928 in webkit


Ignore:
Timestamp:
Nov 17, 2021 6:52:21 AM (8 months ago)
Author:
youenn@apple.com
Message:

Safari 15.1 H264 FullHD video encode/decode fails
https://bugs.webkit.org/show_bug.cgi?id=233036
<rdar://80345048>

Reviewed by Eric Carlson.

Source/ThirdParty/libwebrtc:

H264 encoder now checks the profile and fails if frame is too big.
To get back to the past behavior, we are now using auto level for both ARM64 devices as well as devices with Monterey OS.

  • Source/webrtc/sdk/WebKit/VideoProcessingSoftLink.h:
  • Source/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH264.mm:

LayoutTests:

  • platform/mac-wk2/TestExpectations:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r285924 r285928  
     12021-11-17  Youenn Fablet  <youenn@apple.com>
     2
     3        Safari 15.1 H264 FullHD video encode/decode fails
     4        https://bugs.webkit.org/show_bug.cgi?id=233036
     5        <rdar://80345048>
     6
     7        Reviewed by Eric Carlson.
     8
     9        * platform/mac-wk2/TestExpectations:
     10
    1112021-11-17  Andres Gonzalez  <andresg_22@apple.com>
    212
  • trunk/LayoutTests/platform/mac-wk2/TestExpectations

    r285917 r285928  
    14941494webkit.org/b/227639 [ BigSur Release ] fast/history/visited-href-mutation.html [ Pass ImageOnlyFailure ]
    14951495
    1496 # rdar://80345048 ([ Monterey wk2 ] webrtc/h264-high.html is a constant timeout)
    1497 [ Monterey ] webrtc/h264-high.html [ Timeout ]
    1498 
    14991496# rdar://80346382 ([ Monterey Release wk2 arm64 ] platform/mac/fast/overflow/overflow-scrollbar-hit-test.html is a flaky crash)
    15001497[ Monterey arm64 ] platform/mac/fast/overflow/overflow-scrollbar-hit-test.html [ Failure Crash ]
  • trunk/Source/ThirdParty/libwebrtc/ChangeLog

    r285577 r285928  
     12021-11-17  Youenn Fablet  <youenn@apple.com>
     2
     3        Safari 15.1 H264 FullHD video encode/decode fails
     4        https://bugs.webkit.org/show_bug.cgi?id=233036
     5        <rdar://80345048>
     6
     7        Reviewed by Eric Carlson.
     8
     9        H264 encoder now checks the profile and fails if frame is too big.
     10        To get back to the past behavior, we are now using auto level for both ARM64 devices as well as devices with Monterey OS.
     11
     12        * Source/webrtc/sdk/WebKit/VideoProcessingSoftLink.h:
     13        * Source/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH264.mm:
     14
    1152021-11-10  Youenn Fablet  <youenn@apple.com> and Victor M. Jaquez L. <vjaquez@igalia.com>
    216
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/sdk/WebKit/VideoProcessingSoftLink.h

    r283431 r285928  
    4646#define HAVE_VTB_REQUIREDLOWLATENCY __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000
    4747#define ENABLE_VCP_FOR_H264_BASELINE __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
     48#define ENABLE_H264_HIGHPROFILE_AUTOLEVEL __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000
    4849#endif
    4950
     
    5960#if !defined(ENABLE_VCP_FOR_H264_BASELINE)
    6061#define ENABLE_VCP_FOR_H264_BASELINE 0
     62#endif
     63
     64#if !defined(ENABLE_H264_HIGHPROFILE_AUTOLEVEL)
     65#if defined(WEBRTC_ARCH_ARM64)
     66#define ENABLE_H264_HIGHPROFILE_AUTOLEVEL 1
     67#else
     68#define ENABLE_H264_HIGHPROFILE_AUTOLEVEL 0
     69#endif
    6170#endif
    6271
  • trunk/Source/ThirdParty/libwebrtc/Source/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH264.mm

    r285577 r285928  
    261261    case webrtc::H264Profile::kProfileConstrainedHigh:
    262262    case webrtc::H264Profile::kProfileHigh:
    263 #if !defined(WEBRTC_ARCH_ARM64)
     263#if !ENABLE_H264_HIGHPROFILE_AUTOLEVEL
    264264      switch (profile_level_id.level) {
    265265        case webrtc::H264Level::kLevel3:
Note: See TracChangeset for help on using the changeset viewer.