mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug: fix the way calculating PCR for ts(#678)
This commit is contained in:
parent
8b00e56a84
commit
e0ab8b080d
1 changed files with 1 additions and 1 deletions
|
@ -1202,7 +1202,7 @@ int SrsTsAdaptationField::encode(SrsStream* stream)
|
|||
// @see https://github.com/ossrs/srs/issues/250#issuecomment-71349370
|
||||
int64_t pcrv = program_clock_reference_extension & 0x1ff;
|
||||
pcrv |= (const1_value0 << 9) & 0x7E00;
|
||||
pcrv |= (program_clock_reference_base << 15) & 0x1FFFFFFFF000000LL;
|
||||
pcrv |= (program_clock_reference_base << 15) & 0xFFFFFFFF8000LL;
|
||||
|
||||
pp = (char*)&pcrv;
|
||||
*p++ = pp[5];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue