ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TS parsing is incorrect

pbesedm opened this issue · comments

image

srs_kernel_ts.cpp

1658: // (1+x)B
1659: if (PES_extension_flag_2) {
1660:    PES_extension_field_length = stream->read_1bytes();
1661:    PES_extension_field_length &= 0x07;

1661 行的 PES_extension_field_length &= 0x07; 不应该是 PES_extension_field_length &= 0x7F; 吗?'

Shouldn't it be PES_extension_field_length &= 0x7F; instead of PES_extension_field_length &= 0x07; on line 1661?

TRANS_BY_GPT3

👍 Yep, can you file a PR please?

Merged