Fixed mjpeg extract.go returning errors when it should not.

This commit is contained in:
Scott 2020-01-09 16:03:52 +10:30
parent 949c4ee2af
commit 0a79ac3474
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ func (e *Extractor) Extract(dst io.Writer, src io.Reader, delay time.Duration) e
err = ctx.ParsePayload(p, m)
switch err {
case nil: // Do nothing.
case ErrNoFrameStart: // If no frame start then we continue until we get one.
default:
return fmt.Errorf("could not parse JPEG scan: %w", err)