Skip to content

Commit 913f870

Browse files
committed
Removed the unused variable
1 parent f402cd3 commit 913f870

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

src/vp8rtpdepacketizer.cpp

+1-15
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ message_vector VP8RtpDepacketizer::buildFrame(
9191
for(auto it = first; it != last; ++it) {
9292
auto &pkt = *it;
9393
auto hdr = reinterpret_cast<const RtpHeader*>(pkt->data());
94-
uint16_t seq = hdr->seqNumber();
95-
bool marker = hdr->marker();
9694

9795
// The VP8 payload descriptor is after the RTP header:
9896
size_t hdrSize = hdr->getSize() + hdr->getExtensionHeaderSize();
@@ -110,20 +108,8 @@ message_vector VP8RtpDepacketizer::buildFrame(
110108
size_t descLen = nal.parseDescriptor();
111109

112110
bool Sbit = nal.isStartOfPartition(); // The S bit
113-
bool isKey = nal.isKeyFrame();
114111
// 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
127113

128114
// For a valid first partition, we want S=1 and PID=0
129115
if(Sbit && pid == 0) {

0 commit comments

Comments
 (0)