mirror of https://bitbucket.org/ausocean/av.git
Fixed mjpeg extract.go returning errors when it should not.
This commit is contained in:
parent
949c4ee2af
commit
0a79ac3474
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue