ts: add probe func
This commit is contained in:
parent
563991132c
commit
d5c3f87b5c
@ -9,6 +9,10 @@ import (
|
||||
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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user