mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/extract.go: simplified error message when can't get RTP payload
This commit is contained in:
parent
5cd4a0a23c
commit
23d58e1b12
|
@ -63,7 +63,7 @@ func (e *Extractor) Extract(dst io.Writer, src io.Reader, delay time.Duration) e
|
|||
// Get payload from RTP packet.
|
||||
p, err := rtp.Payload(buf[:n])
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not get RTP payload, failed with err: %v\n", err)
|
||||
return fmt.Errorf("could not get RTP payload: %w\n", err)
|
||||
}
|
||||
|
||||
// Also grab the marker so that we know when the JPEG is finished.
|
||||
|
|
Loading…
Reference in New Issue