Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: webrtc/common_types.h

Issue 2337453002: H.264 packetization mode 0 (try 2) (Closed)
Patch Set: Bot-detected compiler issues Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/common_types.h
diff --git a/webrtc/common_types.h b/webrtc/common_types.h
index 678b8566282ed97483d880e6d8ad911358023346..abbdf6c940e76433a596e95a9d7a3e0baca05221 100644
--- a/webrtc/common_types.h
+++ b/webrtc/common_types.h
@@ -540,9 +540,18 @@ 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 {
bool frameDroppingOn;
int keyFrameInterval;
+ H264PacketizationMode packetization_mode;
// These are NULL/0 if not externally negotiated.
const uint8_t* spsData;
size_t spsLen;

Powered by Google App Engine
This is Rietveld 408576698