add MuxCloser and DemuxCloser

This commit is contained in:
nareix 2016-06-30 20:31:31 +08:00
parent 20aee0b19c
commit 06439a64eb

10
av.go
View File

@ -192,11 +192,21 @@ type Muxer interface {
WriteTrailer() error
}
type MuxCloser interface {
Muxer
Close() error
}
type Demuxer interface {
PacketReader
Streams() ([]CodecData, error)
}
type DemuxCloser interface {
Demuxer
Close() error
}
type Packet struct {
IsKeyFrame bool
Idx int8