mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
change signature of rtp encoders and decoders
This commit is contained in:
@@ -30,7 +30,8 @@ func main() {
|
||||
" ! h264parse config-interval=1 ! rtph264pay ! udpsink host=127.0.0.1 port=9000")
|
||||
|
||||
// get SPS and PPS
|
||||
decoder := rtph264.NewDecoder()
|
||||
decoder := &rtph264.Decoder{}
|
||||
decoder.Init()
|
||||
sps, pps, err := decoder.ReadSPSPPS(rtph264.PacketConnReader{pc})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user