You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
420 B
Go
27 lines
420 B
Go
package ts
|
|
|
|
import (
|
|
"io"
|
|
|
|
"gitlab.com/ics_cinnamon/joy4/av"
|
|
"gitlab.com/ics_cinnamon/joy4/av/avutil"
|
|
)
|
|
|
|
func Handler(h *avutil.RegisterHandler) {
|
|
h.Ext = ".ts"
|
|
|
|
h.Probe = func(b []byte) bool {
|
|
return b[0] == 0x47 && b[188] == 0x47
|
|
}
|
|
|
|
h.ReaderDemuxer = func(r io.Reader) av.Demuxer {
|
|
return NewDemuxer(r)
|
|
}
|
|
|
|
h.WriterMuxer = func(w io.Writer) av.Muxer {
|
|
return NewMuxer(w)
|
|
}
|
|
|
|
h.CodecTypes = CodecTypes
|
|
}
|