Rewrite magic source

This commit is contained in:
Alexey Khit
2023-08-19 15:19:09 +03:00
parent a9118562a9
commit bc60cbefb8
11 changed files with 124 additions and 114 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ func ADTSToCodec(b []byte) *core.Codec {
//_ = rd.ReadBits(16) // CRC check
// 3. Encode RTP config
wr := bits.NewWriter()
wr := bits.NewWriter(nil)
wr.WriteBits8(objType, 5)
wr.WriteBits8(sampleRateIdx, 4)
wr.WriteBits16(channels, 4)