1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #307, zero copy for RTP STAP packet

This commit is contained in:
winlin 2020-04-11 23:57:04 +08:00
parent 4b2404c203
commit aa81b47c9a
8 changed files with 191 additions and 55 deletions

View file

@ -32,6 +32,7 @@ using namespace std;
#include <srs_kernel_buffer.hpp>
#include <srs_kernel_utility.hpp>
#include <srs_core_autofree.hpp>
#include <srs_kernel_rtp.hpp>
string srs_video_codec_id2str(SrsVideoCodecId codec)
{
@ -375,9 +376,6 @@ srs_error_t SrsSample::parse_bframe()
{
srs_error_t err = srs_success;
// H.264 nalu header type mask.
static uint8_t kNalTypeMask = 0x1F;
uint8_t header = bytes[0];
SrsAvcNaluType nal_type = (SrsAvcNaluType)(header & kNalTypeMask);