back to old return

This commit is contained in:
Ella Pietraroia 2020-01-22 15:44:53 +10:30
parent c3f1d957e3
commit c9dee735d4
1 changed files with 1 additions and 1 deletions

View File

@ -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()