This makes transcoder.Output() work again.

Since errb is not really handled later on anyway and error from ffmpeg are still printed, I think this change only makes sense. 
credit to https://github.com/xfrr/goffmpeg/issues/54#issuecomment-616273992
This commit is contained in:
manscrober
2020-05-07 00:51:19 +02:00
committed by GitHub
parent c3a1545b29
commit aa8cdf013e

View File

@@ -224,7 +224,6 @@ func (t *Transcoder) Run(progress bool) <-chan error {
var outb, errb bytes.Buffer
if progress {
proc.Stdout = &outb
proc.Stderr = &errb
}
// If an input pipe has been set, we set it as stdin for the transcoding