mirror of https://bitbucket.org/ausocean/av.git
back to old return
This commit is contained in:
parent
c3f1d957e3
commit
c9dee735d4
|
@ -87,7 +87,7 @@ func (m *MOGFilter) Write(f []byte) (int, error) {
|
||||||
m.hfCount = 0
|
m.hfCount = 0
|
||||||
img, err := gocv.IMDecode(f, gocv.IMReadColor)
|
img, err := gocv.IMDecode(f, gocv.IMReadColor)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return len(f), fmt.Errorf("image can't be decoded: %w", err)
|
return 0, fmt.Errorf("image can't be decoded: %w", err)
|
||||||
}
|
}
|
||||||
defer img.Close()
|
defer img.Close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue