Add support AAC for RTSP

This commit is contained in:
Alexey Khit
2022-11-07 11:02:26 +03:00
parent d16ae0972f
commit e1bc30fab3
8 changed files with 92 additions and 25 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (c *Conn) AddTrack(media *streamer.Media, track *streamer.Track) *streamer.
wrapper := h264.RTPPay(1200)
push = wrapper(push)
if h264.IsAVC(codec) {
if codec.IsMP4() {
wrapper = h264.RepairAVC(track)
} else {
wrapper = h264.RTPDepay(track)