diff --git a/src/modules/rtp_rtcp/source/rtp_sender_video.cc b/src/modules/rtp_rtcp/source/rtp_sender_video.cc index 8c7da1cc18..6994cb582b 100644 --- a/src/modules/rtp_rtcp/source/rtp_sender_video.cc +++ b/src/modules/rtp_rtcp/source/rtp_sender_video.cc @@ -1239,7 +1239,6 @@ RTPSenderVideo::SendVP8(const FrameType frameType, bool last = false; _numberFirstPartition = 0; - int numberFirstPartition = 0; // local counter while (!last) { // Write VP8 Payload Descriptor and VP8 payload. @@ -1251,17 +1250,12 @@ RTPSenderVideo::SendVP8(const FrameType frameType, &payloadBytesInPacket, &last); if (packetStartPartition == 0) { - ++numberFirstPartition; + ++_numberFirstPartition; } else if (packetStartPartition < 0) { return -1; } - else - { - // numberFirstPartition has reached the final value. - _numberFirstPartition = numberFirstPartition; - } // Write RTP header. // Set marker bit true if this is the last packet in frame.