提交 d25bd20d authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Run gulp format & tidy

上级 46f10c1d
......@@ -2,8 +2,8 @@
#define MS_RTC_CODECS_HPP
#include "common.hpp"
#include "RTC/Codecs/VP8.hpp"
#include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include "RTC/Codecs/VP8.hpp"
#include "RTC/RtpDictionaries.hpp"
#include "RTC/RtpPacket.hpp"
......
......@@ -3,8 +3,8 @@
#include "common.hpp"
#include "Channel/Notifier.hpp"
#include "RTC/ConsumerListener.hpp"
#include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include "RTC/ConsumerListener.hpp"
#include "RTC/RTCP/CompoundPacket.hpp"
#include "RTC/RTCP/FeedbackRtpNack.hpp"
#include "RTC/RTCP/ReceiverReport.hpp"
......
......@@ -154,10 +154,11 @@ namespace RTC
VP8::PayloadDescriptorHandler::PayloadDescriptorHandler(VP8::PayloadDescriptor* payloadDescriptor)
{
this->payloadDescriptor.reset(payloadDescriptor);
this->payloadDescriptor.reset(payloadDescriptor);
}
void VP8::PayloadDescriptorHandler::Encode(RTC::Codecs::EncodingContext* encodingContext, uint8_t* data)
void VP8::PayloadDescriptorHandler::Encode(
RTC::Codecs::EncodingContext* encodingContext, uint8_t* data)
{
EncodingContext* context = dynamic_cast<EncodingContext*>(encodingContext);
......@@ -174,12 +175,14 @@ namespace RTC
}
// Update pictureId and tl0PictureIndex values.
context->pictureId =
(this->payloadDescriptor->pictureId - context->pictureIdBase) + context->pictureIdPreviousBase + 1;
context->pictureId = (this->payloadDescriptor->pictureId - context->pictureIdBase) +
context->pictureIdPreviousBase + 1;
context->tl0PictureIndex = (this->payloadDescriptor->tl0PictureIndex - context->tl0PictureIndexBase) + context->tl0PictureIndexPreviousBase + 1;
context->tl0PictureIndex =
(this->payloadDescriptor->tl0PictureIndex - context->tl0PictureIndexBase) +
context->tl0PictureIndexPreviousBase + 1;
auto pictureId = context->pictureId;
auto pictureId = context->pictureId;
auto tl0PictureIndex = context->tl0PictureIndex;
this->payloadDescriptor->Encode(data, pictureId, tl0PictureIndex);
......
......@@ -172,7 +172,7 @@ namespace RTC
Utils::Byte::Set1Byte(ptr++, 0, payloadPadding);
// Set the packet size.
size_t size = static_cast<size_t>(ptr - buffer);
auto size = static_cast<size_t>(ptr - buffer);
MS_ASSERT(
size == sizeof(Header) + payloadLength + size_t{ payloadPadding },
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论