Code refactoring

This commit is contained in:
Alexey Khit
2023-01-14 19:11:52 +03:00
parent e472397705
commit 395304654a
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func RTPDepay(track *streamer.Track) streamer.WrapperFunc {
buf = buf[:0]
}
//log.Printf("[AVC] %v, len: %d", Types(payload), len(payload))
//log.Printf("[AVC] %v, len: %d, ts: %10d, seq: %d", Types(payload), len(payload), packet.Timestamp, packet.SequenceNumber)
clone := *packet
clone.Version = RTPPacketVersionAVC
+1 -2
View File
@@ -14,8 +14,7 @@ func ReplaceEnvVars(text string) string {
var def string
var dok bool
i := strings.IndexByte(key, ':')
if i > 0 {
if i := strings.IndexByte(key, ':'); i > 0 {
key, def = key[:i], key[i+1:]
dok = true
}