From 0b95041d4f678d36cca2bfa798007ae4e70b3b2f Mon Sep 17 00:00:00 2001 From: Ella Pietraroia Date: Tue, 7 Jan 2020 16:48:08 +1030 Subject: [PATCH] quantization = 0 for input encode is MJPEG --- filter/mog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/mog.go b/filter/mog.go index cff19d3e..bd916791 100644 --- a/filter/mog.go +++ b/filter/mog.go @@ -83,7 +83,7 @@ func (m *MOGFilter) Write(f []byte) (int, error) { if hfCount < (m.hf - 1) { m.hold[hfCount] = f hfCount++ - return -1, nil + return 0, nil } else { img, err := gocv.IMDecode(f, gocv.IMReadColor) if err != nil {