link to mediacommon (#223)

* move codecs and bits to mediacommon

* add SafeSetParams() to H264 and H265

* update README
This commit is contained in:
Alessandro Ros
2023-04-01 16:38:08 +02:00
committed by GitHub
parent af3ed2bd83
commit f905598d2e
287 changed files with 329 additions and 6381 deletions

View File

@@ -81,13 +81,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