Ilya Nikolaevskiy a40e6de242 Allow extremely low resolution for simulcast path
Some screen capturers may occasionally send an extremely small frame,
e.g. 2x2. If a scale_resolution_down_by is specified, WebrtcVideoEngine
would enforce configured resolution to be at least 16x16, which would
then break VideoStreamEncoder and cause a crash.

This changes disables scaling and alignment for extremely low resolutions.

Bug: chromium:1265303, webrtc:13371
Change-Id: Icdb736043e1fdf91fdde5a8e4b3c6a89f6b90577
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236850
Reviewed-by: Niels Moller <nisse@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35420}
2021-11-25 19:07:57 +00:00
..
2021-11-17 13:37:06 +00:00
2021-11-23 15:59:58 +00:00
2021-05-06 09:38:49 +00:00