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

fix h264 rtp packet error

This commit is contained in:
xiaozhihong 2020-03-18 08:45:20 +08:00
parent fc84f1e545
commit e2233027b8
5 changed files with 34 additions and 15 deletions

View file

@ -28,6 +28,8 @@
#include <string>
const uint8_t kMarker = 0x80;
class SrsRtpSharedPacket
{
private:
@ -57,6 +59,9 @@ public:
public:
srs_error_t create(int64_t t, uint16_t seq, uint32_t sc, uint16_t pt, char* p, int s);
SrsRtpSharedPacket* copy();
// interface to modify rtp header
public:
srs_error_t set_marker(bool marker);
};
#endif