[webkit-changes] [WebKit/WebKit] e919dc: VideoFrame buffer constructor doesn't respect code...

youennf noreply at github.com
Fri Jul 7 08:30:49 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e919dcfad3da7a2f20efe34b6e810761ddd64204
      https://github.com/WebKit/WebKit/commit/e919dcfad3da7a2f20efe34b6e810761ddd64204
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-07-07 (Fri, 07 Jul 2023)

  Changed paths:
    A LayoutTests/http/wpt/webcodecs/videoFrame-with-stride-expected.txt
    A LayoutTests/http/wpt/webcodecs/videoFrame-with-stride.html
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp

  Log Message:
  -----------
  VideoFrame buffer constructor doesn't respect codedWidth if visibleRect is present
https://bugs.webkit.org/show_bug.cgi?id=256848
rdar://109724698

Reviewed by Eric Carlson.

Use codedWidth and codedHeight instead of parsedRect.
This is coherent with the rest of the algorithm like checking the array size and is consistent with what Chrome does.
I filed https://github.com/w3c/webcodecs/issues/702 to update the spec.

* LayoutTests/http/wpt/webcodecs/videoFrame-with-stride-expected.txt: Added.
* LayoutTests/http/wpt/webcodecs/videoFrame-with-stride.html: Added.
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.cpp:
(WebCore::WebCodecsVideoFrame::create):

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




More information about the webkit-changes mailing list