rtmp支持pts

This commit is contained in:
xiongziliang
2018-11-17 17:47:43 +08:00
parent a12ed95aa4
commit 8aa773bd49
3 changed files with 24 additions and 11 deletions

View File

@@ -62,6 +62,11 @@ public:
uint32_t dts() const override {
return timeStamp;
}
uint32_t pts() const override {
return ptsStamp ? ptsStamp : timeStamp;
}
uint32_t prefixSize() const override{
return iPrefixSize;
}
@@ -80,6 +85,7 @@ public:
public:
uint16_t sequence;
uint32_t timeStamp;
uint32_t ptsStamp = 0;
unsigned char type;
string buffer;
uint32_t iPrefixSize = 4;