-
Guido Urdaneta authored
This patch makes VideoTrackAdapter ignore aspect-ratio limits when the input or output frame has zero area. Also, output dimensions are clamped to media::limits::kMaxDimension. Before this CL, an input source with zero area (e.g., from element capture) could result in undefined behavior when trying to correct the frame's aspect ratio due to casting of infinite or NaN floating-point values to int. Bug: 763676 Change-Id: I23794e7aba965ee8443bde5c36ef2adfe8cc2ba3 Reviewed-on: https://chromium-review.googlesource.com/663177 Commit-Queue: Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Henrik Boström <hbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#501506}
e8e870d5