mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
link to mediacommon (#223)
* move codecs and bits to mediacommon * add SafeSetParams() to H264 and H265 * update README
This commit is contained in:
@@ -58,13 +58,11 @@ func main() {
|
||||
defer h264RawDec.close()
|
||||
|
||||
// if SPS and PPS are present into the SDP, send them to the decoder
|
||||
sps := forma.SafeSPS()
|
||||
if sps != nil {
|
||||
h264RawDec.decode(sps)
|
||||
if forma.SPS != nil {
|
||||
h264RawDec.decode(forma.SPS)
|
||||
}
|
||||
pps := forma.SafePPS()
|
||||
if pps != nil {
|
||||
h264RawDec.decode(pps)
|
||||
if forma.PPS != nil {
|
||||
h264RawDec.decode(forma.PPS)
|
||||
}
|
||||
|
||||
// setup a single media
|
||||
|
Reference in New Issue
Block a user