mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code for #250, ts remux
This commit is contained in:
parent
e9ed62e052
commit
c9d270fbe0
3 changed files with 9 additions and 8 deletions
|
@ -254,11 +254,11 @@ public:
|
|||
*p++ = header_size;
|
||||
|
||||
// pts; // 33bits
|
||||
p = write_pts(p, flags >> 6, frame->pts + SRS_AUTO_HLS_DELAY);
|
||||
p = write_dts_pts(p, flags >> 6, frame->pts + SRS_AUTO_HLS_DELAY);
|
||||
|
||||
// dts; // 33bits
|
||||
if (frame->dts != frame->pts) {
|
||||
p = write_pts(p, 1, frame->dts + SRS_AUTO_HLS_DELAY);
|
||||
p = write_dts_pts(p, 1, frame->dts + SRS_AUTO_HLS_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -344,7 +344,7 @@ private:
|
|||
|
||||
return p;
|
||||
}
|
||||
static char* write_pts(char* p, u_int8_t fb, int64_t pts)
|
||||
static char* write_dts_pts(char* p, u_int8_t fb, int64_t pts)
|
||||
{
|
||||
int32_t val;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue