Committed by
GitHub
fix bug: fix the way calculating PCR for ts(#678) (#430)
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -1202,7 +1202,7 @@ int SrsTsAdaptationField::encode(SrsStream* stream) | @@ -1202,7 +1202,7 @@ int SrsTsAdaptationField::encode(SrsStream* stream) | ||
1202 | // @see https://github.com/ossrs/srs/issues/250#issuecomment-71349370 | 1202 | // @see https://github.com/ossrs/srs/issues/250#issuecomment-71349370 |
1203 | int64_t pcrv = program_clock_reference_extension & 0x1ff; | 1203 | int64_t pcrv = program_clock_reference_extension & 0x1ff; |
1204 | pcrv |= (const1_value0 << 9) & 0x7E00; | 1204 | pcrv |= (const1_value0 << 9) & 0x7E00; |
1205 | - pcrv |= (program_clock_reference_base << 15) & 0x1FFFFFFFF000000LL; | 1205 | + pcrv |= (program_clock_reference_base << 15) & 0xFFFFFFFF8000LL; |
1206 | 1206 | ||
1207 | pp = (char*)&pcrv; | 1207 | pp = (char*)&pcrv; |
1208 | *p++ = pp[5]; | 1208 | *p++ = pp[5]; |
-
请 注册 或 登录 后发表评论