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