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
This commit is contained in:
parent
0ef0377836
commit
ade0c6ca28
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user