Index: webrtc/common_types.h |
diff --git a/webrtc/common_types.h b/webrtc/common_types.h |
index c3e9a84c3cc729b5cb3e1b1287731cc102aa3ba0..9dc9f3658bb84d76caeb5930409007ac169ed639 100644 |
--- a/webrtc/common_types.h |
+++ b/webrtc/common_types.h |
@@ -542,10 +542,19 @@ struct VideoCodecVP9 { |
}; |
// H264 specific. |
+enum H264PacketizationMode { |
+ // Because VideoCodecH264 was initialized in multiple places using memset, |
+ // we let 0 have the meaning of "not set". |
+ kH264PacketizationModeNotSet = 0, |
+ kH264PacketizationMode0, // Only single NALU allowed |
+ kH264PacketizationMode1 // Non-interleaved - STAP-A, FU-A is allowed |
+}; |
+ |
struct VideoCodecH264 { |
VideoCodecProfile profile; |
bool frameDroppingOn; |
int keyFrameInterval; |
+ H264PacketizationMode packetization_mode; |
// These are NULL/0 if not externally negotiated. |
const uint8_t* spsData; |
size_t spsLen; |