Incorrect overhead calculation when using FEC + RTP extension headers.
When frames are fragmented inte multiple RTP packets in order to not exceed a maximum packet size, the header overhead calculation must take into account that FEC redundancy packets may use more than the 12 bytes of the basic RTP header. For example, a csrc list or extension headers may be present. BUG=2899 R=phoglund@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8769005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5562 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -49,7 +49,9 @@ int32_t ConfigurableFrameSizeEncoder::Encode(
|
||||
encodedImage._timeStamp = inputImage.timestamp();
|
||||
encodedImage.capture_time_ms_ = inputImage.render_time_ms();
|
||||
RTPFragmentationHeader* fragmentation = NULL;
|
||||
callback_->Encoded(encodedImage, codecSpecificInfo, fragmentation);
|
||||
CodecSpecificInfo specific;
|
||||
memset(&specific, 0, sizeof(specific));
|
||||
callback_->Encoded(encodedImage, &specific, fragmentation);
|
||||
|
||||
return WEBRTC_VIDEO_CODEC_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user