[webkit-changes] [WebKit/WebKit] 245e94: WebRTC AV1 decoder should be able to handle dynami...

youennf noreply at github.com
Sun Jan 12 22:47:59 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 245e94c46483eb9d96c52047c913c195385894b4
      https://github.com/WebKit/WebKit/commit/245e94c46483eb9d96c52047c913c195385894b4
  Author: Youenn Fablet <youenn at apple.com>
  Date:   2025-01-12 (Sun, 12 Jan 2025)

  Changed paths:
    M LayoutTests/webrtc/video-av1-expected.txt
    M LayoutTests/webrtc/video-av1.html
    M Source/WebCore/platform/video-codecs/cocoa/RTCVideoDecoderVTBAV1.mm

  Log Message:
  -----------
  WebRTC AV1 decoder should be able to handle dynamic resolution increase
rdar://142605002
https://bugs.webkit.org/show_bug.cgi?id=285681

Reviewed by Jean-Yves Avenard.

AV1 VTB decoder may be sent video frames of varying size through the WebRTC code path.
To properly handle this, we parse each encoded frame to get its input format.
If the input format is different from the current input format, we recreate the VTB session.

Covered by added test.

* LayoutTests/webrtc/video-av1-expected.txt:
* LayoutTests/webrtc/video-av1.html:
* Source/WebCore/platform/video-codecs/cocoa/RTCVideoDecoderVTBAV1.mm:
(-[RTCVideoDecoderVTBAV1 init]):
(-[RTCVideoDecoderVTBAV1 setWidth:height:]):
(-[RTCVideoDecoderVTBAV1 decodeData:size:timeStamp:]):

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



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


More information about the webkit-changes mailing list