Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ada444cba9efa29f558720f887d8812b4921c576
      
https://github.com/WebKit/WebKit/commit/ada444cba9efa29f558720f887d8812b4921c576
  Author: Youenn Fablet <[email protected]>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.h
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.h

  Log Message:
  -----------
  Bump WebCodecs video encoder/decoder message queue max size to 16
rdar://188165426
https://bugs.webkit.org/show_bug.cgi?id=324943

Reviewed by Jean-Yves Avenard.

macOS H264 SW encoder can buffer up to 16 frames.
The max message queue size was set to 4.
In case of using macOS H264 SW encoder, a web page that sends 10 frames and 
calls flush would hang.
The reason is that the encoder would buffer 4 frames and WebCodecs would have 
its message queue saturated.
That would prevent to send the 6 remaining frames and call flush.

To prevent this, we increase the max queue size to 16.
A follow-up patch should probably let the internal encoder/decoder tell 
WebCodecs what the max queue size should be.

* Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.h:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.h:

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



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

Reply via email to