1
0
Fork 0
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:
winlin 2015-01-25 13:19:22 +08:00
parent e9ed62e052
commit c9d270fbe0
3 changed files with 9 additions and 8 deletions

View file

@ -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;