Fix JPEG from mjpg-streamer project

This commit is contained in:
Alex X
2024-05-04 07:44:30 +03:00
parent a03db503c3
commit 322c332170
2 changed files with 37 additions and 0 deletions
+2
View File
@@ -57,6 +57,8 @@ func handlerKeyframe(w http.ResponseWriter, r *http.Request) {
return
}
log.Debug().Msgf("[mjpeg] transcoding time=%s", time.Since(ts))
case core.CodecJPEG:
b = mjpeg.FixJPEG(b)
}
h := w.Header()