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

Apply gulp format

上级 2fe0718b
...@@ -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/PayloadDescriptorHandler.hpp"
#include "RTC/Codecs/H264.hpp" #include "RTC/Codecs/H264.hpp"
#include "RTC/Codecs/PayloadDescriptorHandler.hpp"
#include "RTC/Codecs/VP8.hpp" #include "RTC/Codecs/VP8.hpp"
#include "RTC/RtpDictionaries.hpp" #include "RTC/RtpDictionaries.hpp"
#include "RTC/RtpPacket.hpp" #include "RTC/RtpPacket.hpp"
......
...@@ -53,9 +53,7 @@ namespace RTC ...@@ -53,9 +53,7 @@ namespace RTC
/* Inline EncondingContext methods */ /* Inline EncondingContext methods */
inline void H264::EncodingContext::SyncRequired() inline void H264::EncodingContext::SyncRequired(){};
{
};
/* Inline PayloadDescriptorHandler methods */ /* Inline PayloadDescriptorHandler methods */
......
...@@ -20,11 +20,10 @@ namespace RTC ...@@ -20,11 +20,10 @@ namespace RTC
return nullptr; return nullptr;
uint8_t fragment = *data & 0x1F; uint8_t fragment = *data & 0x1F;
uint8_t nal = *(data+1) & 0x1F; uint8_t nal = *(data + 1) & 0x1F;
uint8_t startBit = *(data+1) & 0x80; uint8_t startBit = *(data + 1) & 0x80;
if (fragment == 5 || if (fragment == 5 || ((fragment == 28 || fragment == 29) && nal == 5 && startBit == 128))
((fragment == 28 || fragment == 29) && nal == 5 && startBit == 128))
payloadDescriptor->isKeyFrame = true; payloadDescriptor->isKeyFrame = true;
return payloadDescriptor.release(); return payloadDescriptor.release();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论