From ade0c6ca282b8a4a45a5dbaf27fff5e75a1246bf Mon Sep 17 00:00:00 2001 From: "marpan@google.com" Date: Wed, 20 Jul 2011 20:54:55 +0000 Subject: [PATCH] Fix for numberFirstPartition setting: occurs when whole frame is packetized into one packet (0 was set instead of 1). Review URL: http://webrtc-codereview.appspot.com/88003 git-svn-id: http://webrtc.googlecode.com/svn/trunk@236 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/rtp_rtcp/source/rtp_sender_video.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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.