Explicitly set AVFMT_FLAG_CUSTOM_IO.
parent
4d27d03a65
commit
6fe3925e18
|
@ -59,6 +59,7 @@ func Demux(r io.ReadCloser) (demuxer *Demuxer) {
|
||||||
}
|
}
|
||||||
defer avioCtx.Release()
|
defer avioCtx.Release()
|
||||||
ctx.SetPb(avioCtx)
|
ctx.SetPb(avioCtx)
|
||||||
|
ctx.SetFlag(0x0080) // AVFMT_FLAG_CUSTOM_IO
|
||||||
ctx.OpenInput("")
|
ctx.OpenInput("")
|
||||||
|
|
||||||
// fmt.Println("=== FFMPEG DUMP OF INPUT ===")
|
// fmt.Println("=== FFMPEG DUMP OF INPUT ===")
|
||||||
|
|
|
@ -46,6 +46,7 @@ func Mux(muxer string, readers ...io.ReadCloser) (retval io.Reader) {
|
||||||
}
|
}
|
||||||
defer output.AvioCtx.Release()
|
defer output.AvioCtx.Release()
|
||||||
output.Ctx.SetPb(output.AvioCtx)
|
output.Ctx.SetPb(output.AvioCtx)
|
||||||
|
output.Ctx.SetFlag(0x0080) // AVFMT_FLAG_CUSTOM_IO
|
||||||
|
|
||||||
inputs := make([]Instance, len(readers))
|
inputs := make([]Instance, len(readers))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue