MediaStream: don't produce VideoFrames w/ odd dimensions
MSTrack.applyConstraints() produces sometimes odd-dimension frames due to rounding errors. This is a problem for texture-backed VideoFrames. This CL avoids that by producing a |visible_rect| of even size and fully enclosed in the original frame. I tested this on a nocturne chromebook, with the FakeVCD, navigating to [1] and changing the resolution slider a number of times. This would mess up ToT graphics; with the patch, it's fixed. [1] https://webrtc.github.io/samples/src/content/getusermedia/resolution/ Bug: 1045261 Change-Id: I3734ae68a485342195601f15892389793372eed7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2017918Reviewed-by:Guido Urdaneta <guidou@chromium.org> Reviewed-by:
John Rummell <jrummell@chromium.org> Commit-Queue: John Rummell <jrummell@chromium.org> Auto-Submit: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#735023}
Showing
Please register or sign in to comment