commit | d629314396a3b395819132c53d96bbda474737d1 | [log] [tgz] |
---|---|---|
author | Bjorn Mellem <mellem@webrtc.org> | Fri Sep 29 11:33:52 2017 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Sat Sep 30 00:11:57 2017 +0000 |
tree | c6a807d5fee655ed9319cc0ef14fad1e11b9ea18 | |
parent | b5261580bc59a52de61621359c3e50b16710809c [diff] |
Return slices of ByteBuffers from getDataY/U/V() in I420Buffers. I420Buffer implementations (I420BufferImpl and WrappedNativeI420Buffer) rely on the 'position' of the underlying ByteBuffers to indicate the start of Y, U, and V channels. Returning slices prevents callers from altering the state of the I420Buffer by changing the position. ByteBuffers are especially prone to accidentally moving the position: relative read operations (such as get()) increment the position by the size of data read. BUG=webrtc:8303 Change-Id: I52edce8a3bf46a6c41980ff5110a9480f021f22f Reviewed-on: https://webrtc-review.googlesource.com/4521 Commit-Queue: Bjorn Mellem <mellem@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20050}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.