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.
https://ossrs.io
MIT License
25.32k stars 5.33k forks source link

H264: Fix H.264 ISOM reserved bit value. v5.0.161, v6.0.55 #3551

Closed KazuoHagihara closed 1 year ago

KazuoHagihara commented 1 year ago

The MPEG-DASH receiver that we're using couldn't receive the stream that SRS ouputs. The reason was that the value of the reserve bit of AVC sequence header was set to 0.

I fixed the reserved bit value to 1.

image

chundonglinlin commented 1 year ago

This is a great fix, and we can use both the documentation standards(ISO_IEC_14496-15-AVC-format-2012, page 16.) and FFmpeg's processing method as reference(ff_isom_write_avcc).