mirror of
https://github.com/aler9/gortsplib
synced 2025-10-13 10:53:58 +08:00
add TrackH264.SetSPS(), TrackH264.SetPPS()
This commit is contained in:
@@ -131,6 +131,16 @@ func (t *TrackH264) PPS() []byte {
|
|||||||
return t.pps
|
return t.pps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetSPS sets the track SPS.
|
||||||
|
func (t *TrackH264) SetSPS(v []byte) {
|
||||||
|
t.sps = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetPPS sets the track PPS.
|
||||||
|
func (t *TrackH264) SetPPS(v []byte) {
|
||||||
|
t.pps = v
|
||||||
|
}
|
||||||
|
|
||||||
func (t *TrackH264) mediaDescription() *psdp.MediaDescription {
|
func (t *TrackH264) mediaDescription() *psdp.MediaDescription {
|
||||||
typ := strconv.FormatInt(int64(t.payloadType), 10)
|
typ := strconv.FormatInt(int64(t.payloadType), 10)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user