Skip to content
Snippets Groups Projects
Commit 4f947ad6 authored by ynerant's avatar ynerant
Browse files

Bufferize reading

parent 8427377d
No related branches found
No related tags found
No related merge requests found
Pipeline #4646 failed with stages
in 2 minutes and 22 seconds
......@@ -31,7 +31,7 @@ func ingest(name string, q *messaging.Quality) {
return
}
// Start ffmpag to convert videoInput to audio UDP
// Start ffmpeg to convert videoInput to audio UDP
ffmpeg, ffmpegOut, err := startFFmpeg(videoInput, firstPort)
if err != nil {
log.Printf("Error while starting ffmpeg: %s", err)
......@@ -40,7 +40,7 @@ func ingest(name string, q *messaging.Quality) {
// Receive video
go func() {
h264, _ := h264reader.NewReader(*ffmpegOut)
h264, _ := h264reader.NewReader(bufio.NewReader(*ffmpegOut))
var spsAndPpsCache []byte
for {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment