github.com/bluenviron/mediacommon@v1.9.3/pkg/formats/mpegts/codec_mpeg4_audio.go (about) 1 package mpegts 2 3 import ( 4 "github.com/asticode/go-astits" 5 6 "github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio" 7 ) 8 9 // CodecMPEG4Audio is a MPEG-4 Audio codec. 10 type CodecMPEG4Audio struct { 11 mpeg4audio.Config 12 } 13 14 // IsVideo implements Codec. 15 func (CodecMPEG4Audio) IsVideo() bool { 16 return false 17 } 18 19 func (*CodecMPEG4Audio) isCodec() {} 20 21 func (c CodecMPEG4Audio) marshal(pid uint16) (*astits.PMTElementaryStream, error) { 22 return &astits.PMTElementaryStream{ 23 ElementaryPID: pid, 24 StreamType: astits.StreamTypeAACAudio, 25 }, nil 26 }