commit | ee61f9440a4929cea43526eaf32e6a1674fba524 | [log] [tgz] |
---|---|---|
author | Sami Kalliomäki <sakal@webrtc.org> | Mon Feb 04 12:42:11 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Feb 04 13:12:07 2019 |
tree | 928b61f0dc0b436de6bdc490c564a66588cc0645 | |
parent | eee110dea265aaf61dbff192be04416d67bea8f1 [diff] |
Fix a bug in video_encoder_wrapper where int array was not freed properly. JNI_COMMIT doesn't actually free the buffer. From JNI docs: 0: copy back the content and free the elems buffer JNI_COMMIT: copy back the content but do not free the elems buffer JNI_ABORT: free the buffer without copying back the possible changes Also introduces helper methods to help avoid this problem in the future. Bug: webrtc:10132 Change-Id: I769df286d3bd186fdf39ee2363e9002f36454509 Reviewed-on: https://webrtc-review.googlesource.com/c/120600 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26529}
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.
Authoritative list of directories that contain the native API header files.