diff --git a/rtpconn/rtpconn.go b/rtpconn/rtpconn.go index 4cf2706..bcac921 100644 --- a/rtpconn/rtpconn.go +++ b/rtpconn/rtpconn.go @@ -238,6 +238,7 @@ func (down *rtpDownTrack) Write(buf []byte) (int, error) { } down.setLayerInfo(layer) down.adjustLayer() + layer = down.getLayerInfo() } if flags.Start && (layer.tid != layer.wantedTid) { if layer.wantedTid < layer.tid || flags.TidUpSync {