From 0a79ac34744c0842fd543c3769c740b4dc447924 Mon Sep 17 00:00:00 2001 From: Scott Date: Thu, 9 Jan 2020 16:03:52 +1030 Subject: [PATCH] Fixed mjpeg extract.go returning errors when it should not. --- codec/mjpeg/extract.go | 1 + 1 file changed, 1 insertion(+) diff --git a/codec/mjpeg/extract.go b/codec/mjpeg/extract.go index d0e515f2..d8baa7a1 100644 --- a/codec/mjpeg/extract.go +++ b/codec/mjpeg/extract.go @@ -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)