Hi, I am looking at your code responsible for detecting whether RTP packet contains h264 keyframe and I am wondering why you sometimes check if nalu_type == 5 and sometimes if nalu_type == 7
https://github.com/jech/galene/blob/6fbdf0eab2c9640e673d9f9ec0331da24cbf2c4c/codecs/codecs.go#L129
As far as I know type == 7 means SPS (config for decoder) while type == 5 slice of IDR. I would expect to always check if type == 5. However, I am testing my code and both solutions work properly i.e. there is no video freeze between encoding switch in simulcast 🤔