1. Reset has_audio if got some video frames but no audio frames. 2. Reset has_video if got some audio frames but no video frames. 3. Note that audio/video frames are not sequence header.
The reference docs.
SRS 4.0 English
SRS 4.0 中文文档
SRS 5.0 English
SRS 5.0 中文文档
Winlin