Implement WebCodecs video encoder flush
<rdar://problem/101288914>
Pull request: https://github.com/WebKit/WebKit/pull/5491
Committed 255785@main (7cf8c6db3ef5): <https://commits.webkit.org/255785@main> Reviewed commits have been landed. Closing PR #5491 and removing active labels.