Add pps id and sps id parsing to the h.264 depacketizer.

BUG=webrtc:6208

Review-Url: https://codereview.webrtc.org/2238253002
Cr-Commit-Position: refs/heads/master@{#13838}
This commit is contained in:
stefan
2016-08-22 01:20:36 -07:00
committed by Commit bot
parent 86ccd7bfba
commit abcc3de169
11 changed files with 264 additions and 112 deletions

View File

@ -260,6 +260,14 @@ enum H264PacketizationTypes {
// that was too large to fit into a single packet.
};
struct NaluInfo {
uint8_t type;
int sps_id;
int pps_id;
};
const size_t kMaxNalusPerPacket = 10;
struct RTPVideoHeaderH264 {
uint8_t nalu_type; // The NAL unit type. If this is a header for a
// fragmented packet, it's the NAL unit type of
@ -267,6 +275,8 @@ struct RTPVideoHeaderH264 {
// aggregated packet, it's the NAL unit type of
// the first NAL unit in the packet.
H264PacketizationTypes packetization_type;
NaluInfo nalus[kMaxNalusPerPacket];
size_t nalus_length;
};
union RTPVideoTypeHeader {