You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function int SrsTsAdaptationField::encode(SrsStream* stream) in srs_kernel_ts.cpp has an error in calculating the PCR of the ts stream. The code for calculating the PCR in the function is as follows:
winlinvip
changed the title
在srs_kernel_ts.cpp中计算ts流的PCR有错误,
There is an error in calculating the PCR of the ts stream in srs_kernel_ts.cpp.
Jul 28, 2023
The function
int SrsTsAdaptationField::encode(SrsStream* stream)
insrs_kernel_ts.cpp
has an error in calculating the PCR of the ts stream. The code for calculating the PCR in the function is as follows:One of them:
It should be changed to:
Because the composition of PCR is 33 (PCR_Base) + 6 (PCR_const) + 9 (PCR_Ext).
Additionally, there is another calculation method mentioned in stackoverflow. However, their method is not easy to understand.
Although this PCR calculation error is relatively small.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: