mirror of https://bitbucket.org/ausocean/av.git
quantization = 0 for input encode is MJPEG
This commit is contained in:
parent
6f16f68611
commit
0b95041d4f
|
@ -83,7 +83,7 @@ func (m *MOGFilter) Write(f []byte) (int, error) {
|
||||||
if hfCount < (m.hf - 1) {
|
if hfCount < (m.hf - 1) {
|
||||||
m.hold[hfCount] = f
|
m.hold[hfCount] = f
|
||||||
hfCount++
|
hfCount++
|
||||||
return -1, nil
|
return 0, nil
|
||||||
} else {
|
} else {
|
||||||
img, err := gocv.IMDecode(f, gocv.IMReadColor)
|
img, err := gocv.IMDecode(f, gocv.IMReadColor)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue