revid,revid-cli: remove non-functional RTP mention and add MPEGTS config option

This commit is contained in:
Dan Kortschak 2018-06-30 21:50:55 +09:30
parent 3990482ac4
commit 353d2cfcc7
2 changed files with 2 additions and 6 deletions

View File

@ -129,8 +129,6 @@ func main() {
switch *configFlags[inputPtr] {
case "Raspivid":
config.Input = revid.Raspivid
case "Rtp":
config.Input = revid.Rtp
case "File":
config.Input = revid.File
case "":
@ -173,8 +171,8 @@ func main() {
switch *configFlags[packetizationPtr] {
case "None":
config.Packetization = revid.None
case "Rtp":
config.Packetization = revid.Rtp
case "Mpegts":
config.Packetization = revid.Mpegts
case "Flv":
config.Packetization = revid.Flv
case "":

View File

@ -65,7 +65,6 @@ type Config struct {
const (
NothingDefined = iota
Raspivid
Rtp
H264Codec
File
Http
@ -126,7 +125,6 @@ func (c *Config) Validate(r *Revid) error {
}
switch c.Input {
case Rtp:
case Raspivid:
case File:
case NothingDefined: