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

for #738, support srs ingest mp4

This commit is contained in:
winlin 2017-02-05 21:22:07 +08:00
parent 4fe79a1025
commit 31191f2650
2 changed files with 40 additions and 4 deletions

View file

@ -1427,6 +1427,9 @@ public:
uint32_t tbn;
// For video, the frame type, whether keyframe.
SrsCodecVideoAVCFrame frame_type;
// The adjust timestamp in milliseconds.
// For example, we can adjust a timestamp for A/V to monotonically increase.
int32_t adjust;
// The sample data.
uint32_t nb_data;
uint8_t* data;
@ -1434,9 +1437,9 @@ public:
SrsMp4Sample();
virtual ~SrsMp4Sample();
public:
// Get the dts in ms.
// Get the adjusted dts in ms.
virtual uint32_t dts_ms();
// Get the pts in ms.
// Get the adjusted pts in ms.
virtual uint32_t pts_ms();
};