@@ -91,8 +91,6 @@ message_vector VP8RtpDepacketizer::buildFrame(
91
91
for (auto it = first; it != last; ++it) {
92
92
auto &pkt = *it;
93
93
auto hdr = reinterpret_cast <const RtpHeader*>(pkt->data ());
94
- uint16_t seq = hdr->seqNumber ();
95
- bool marker = hdr->marker ();
96
94
97
95
// The VP8 payload descriptor is after the RTP header:
98
96
size_t hdrSize = hdr->getSize () + hdr->getExtensionHeaderSize ();
@@ -110,20 +108,8 @@ message_vector VP8RtpDepacketizer::buildFrame(
110
108
size_t descLen = nal.parseDescriptor ();
111
109
112
110
bool Sbit = nal.isStartOfPartition (); // The S bit
113
- bool isKey = nal.isKeyFrame ();
114
111
// There's no direct method named partitionIndex() in your snippet, but you can do:
115
- uint8_t pid = nal.mFirstByte .partitionIndex (); // The low 3 bits from raw
116
-
117
- // Log the essential bits for debugging:
118
- // std::cout
119
- // << "[VP8RtpDepacketizer] seq=" << seq
120
- // << ", TS=" << timestamp
121
- // << ", marker=" << (marker ? 1 : 0)
122
- // << ", S=" << (Sbit ? 1 : 0)
123
- // << ", PID=" << (int)pid
124
- // << ", keyframe=" << (isKey ? 1 : 0)
125
- // << ", packetSize=" << pkt->size()
126
- // << std::endl;
112
+ uint8_t pid = nal.mFirstByte .partitionIndex (); // The low 3 bits from raw data
127
113
128
114
// For a valid first partition, we want S=1 and PID=0
129
115
if (Sbit && pid == 0 ) {
0 commit comments