[Webkit-unassigned] [Bug 256848] New: VideoFrame buffer constructor doesn't respect codedWidth if visibleRect is present

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 16 10:27:06 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=256848

            Bug ID: 256848
           Summary: VideoFrame buffer constructor doesn't respect
                    codedWidth if visibleRect is present
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bvibber at wikimedia.org

Created attachment 466363

  --> https://bugs.webkit.org/attachment.cgi?id=466363&action=review

Drawn gradient frame with packed (16 stride) and extra bytes (32 stride) on 16x16 input, as seen in Safari 16.4

When creating a VideoFrame from an ArrayBuffer, if the codedWidth is wider than the provided visibleWidth, the resulting frame is corrupted in Safari, while it works as expected in Chrome.

Here's a sample jsfiddle which works as expected in Chrome on my M1 MacBook Air but fails in Safari on the M1 MacBook Air, iPhone 13, and i9 MacBook Pro:

https://jsfiddle.net/1tf8g04c/

I've worked around it in my case by simply producing packed frames that don't need a larger codedWidth, but this may not always be convenient.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230516/78fed920/attachment.htm>


More information about the webkit-unassigned mailing list