quantization = 0 for input encode is MJPEG

This commit is contained in:
Ella Pietraroia 2020-01-07 16:48:08 +10:30 committed by Scott
parent 6f16f68611
commit 0b95041d4f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {