Check for input stream count.
parent
5243e8aec6
commit
67cf9afdd3
|
@ -75,6 +75,10 @@ func Mux(muxer string, readers ...io.ReadCloser) (retval io.Reader) {
|
|||
}
|
||||
|
||||
inputs[i] = input
|
||||
if input.Ctx.StreamsCnt() > 1 {
|
||||
err = errors.New("Too many streams found in input")
|
||||
return
|
||||
}
|
||||
|
||||
var stream *gmf.Stream
|
||||
if stream, err = input.Ctx.GetStream(0); err != nil {
|
||||
|
|
Loading…
Reference in New Issue