diff --git a/pkg/h264/rtp.go b/pkg/h264/rtp.go index bbabab6f..a395e2e0 100644 --- a/pkg/h264/rtp.go +++ b/pkg/h264/rtp.go @@ -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 diff --git a/pkg/shell/env.go b/pkg/shell/env.go index 2dabae61..a8867f6a 100644 --- a/pkg/shell/env.go +++ b/pkg/shell/env.go @@ -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 }