export structure & functions for relay (#214)

* export structure & functions for relay

Co-authored-by: jie.zeng <zengjie9004@gmail.com>
This commit is contained in:
cnderrauber
2021-11-30 14:08:32 +08:00
committed by GitHub
co-authored by jie.zeng
parent 6cf662cbe9
commit c47ad5e323
10 changed files with 68 additions and 78 deletions
+2 -2
View File
@@ -222,10 +222,10 @@ func VP8PictureIdSizeDiff(mBit1 bool, mBit2 bool) int {
return -1
}
// isH264Keyframe detects if h264 payload is a keyframe
// IsH264Keyframe detects if h264 payload is a keyframe
// this code was taken from https://github.com/jech/galene/blob/codecs/rtpconn/rtpreader.go#L45
// all credits belongs to Juliusz Chroboczek @jech and the awesome Galene SFU
func isH264Keyframe(payload []byte) bool {
func IsH264Keyframe(payload []byte) bool {
if len(payload) < 1 {
return false
}