media/gpu/v4l2VEA: NotifyError() with kPlatformFailure if unexpected VideoFrame is fed on Encode()
V4L2VEA doesn't allow change coded_size of VideoFrame during encoding. If the size varies, it invokes NotifyError() with kInvalidArgumentError. However, RtcVideoEncoder does not regard the error as so critical that software encoder fallback should be triggered. As a result, any frame will no longer be encoded if it happens, which is viewed like encoding hangs. This CL lets V4L2VEA invoke NotifyError() with KPlatformFailure in the case so that software encoder fallback happens. Bug: 1057528 Test: SW encoder fallback happens upon rotation on scarlet Change-Id: I8300e42d3a913548736e9d17bba6d394f12345cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2087329 Commit-Queue: Hirokazu Honda <hiroh@chromium.org> Reviewed-by:Jeffrey Kardatzke <jkardatzke@google.com> Reviewed-by:
Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#748526}
Showing
Please register or sign in to comment