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

Run gulp format & tidy

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