2b84dad18c093ade5dcac9eb6fd737a69f2e8990

This issue happens for default case sps_pps_idr_is_h264_keyframe_ is false The way PacketBuffer::FindFrames works for H264 is it keeps on skipping the packets till it finds a packet which has last=1 This is checked here : if (sequence_buffer_[index].frame_end) Inside this block there is a loop, to go back and scan all the packets till start of the frame. Since the scan is backwards, the sequence of nalus in this scan is IDR -> PPS -> SPS. Once IDR is detected if (h264_header->nalus[j].type == H264::NaluType::kIdr) , the code will has_h264_idr = true. When it scans the previous packets, it skips those as has_h264_idr is true. These packets have the SPS / PPS and hence has_h264_sps / pps flags were never set to true. This resulted in warning as no SPS/PPS has been found for IDR. Test plan : verified loopback call on IOS simulator using H264 codec and the warning log "Received H.264-IDR frame..." is not present anymore Bug: webrtc:11006 Change-Id: Icbe8a393e3679a8d621af6c76e4999fd60db04a0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/155420 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Shyam Sadhwani <shyamsadhwani@fb.com> Cr-Commit-Position: refs/heads/master@{#29386}
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.
Development
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.
More info
- Official web site: http://www.webrtc.org
- Master source code repo: https://webrtc.googlesource.com/src
- Samples and reference apps: https://github.com/webrtc
- Mailing list: http://groups.google.com/group/discuss-webrtc
- Continuous build: http://build.chromium.org/p/client.webrtc
- Coding style guide
- Code of conduct
Description
Languages
C++
88.6%
C
3.3%
Java
3%
Objective-C++
1.9%
Python
1.9%
Other
1%