Fix potential division by zero in OpenYuvFile If width or height is 0, the calculation i420_frame_size becomes 0, leading to a crash when dividing file_size by it. Also moved the dimension check to the top to prevent file handle leaks, and added a missing fclose in the even/odd check Bug: None Change-Id: I1fd1d2cb3c5fe515f685be15b6c60bd8ae761cf4 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/447062 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#46853}
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 here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.