Code refactoring
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user