Removed redundant VP8 width/height and made sure the generic width/height is set.

Review URL: https://webrtc-codereview.appspot.com/1158005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3656 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2013-03-12 09:59:27 +00:00
parent 7473f89f63
commit 03e3117d87
2 changed files with 2 additions and 6 deletions

View File

@ -71,8 +71,6 @@ struct RTPVideoHeaderVP8
keyIdx = kNoKeyIdx;
partitionId = 0;
beginningOfPartition = false;
frameWidth = 0;
frameHeight = 0;
}
bool nonReference; // Frame is discardable.
@ -87,8 +85,6 @@ struct RTPVideoHeaderVP8
int partitionId; // VP8 partition ID
bool beginningOfPartition; // True if this packet is the first
// in a VP8 partition. Otherwise false
int frameWidth; // Exists for key frames.
int frameHeight; // Exists for key frames.
};
union RTPVideoTypeHeader
{

View File

@ -359,8 +359,8 @@ WebRtc_Word32 RTPReceiverVideo::ReceiveVp8Codec(
}
to_header->keyIdx = from_header->hasKeyIdx ? from_header->keyIdx : kNoKeyIdx;
to_header->frameWidth = from_header->frameWidth;
to_header->frameHeight = from_header->frameHeight;
rtp_header->type.Video.width = from_header->frameWidth;
rtp_header->type.Video.height = from_header->frameHeight;
to_header->partitionId = from_header->partitionID;
to_header->beginningOfPartition = from_header->beginningOfPartition;