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
341af70d81
commit
db0e292507
|
@ -63,7 +63,7 @@ func (e *Extractor) Extract(dst io.Writer, src io.Reader, delay time.Duration) e
|
||||||
// Get payload from RTP packet.
|
// Get payload from RTP packet.
|
||||||
p, err := rtp.Payload(buf[:n])
|
p, err := rtp.Payload(buf[:n])
|
||||||
if err != nil {
|
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.
|
// Also grab the marker so that we know when the JPEG is finished.
|
||||||
|
|
Loading…
Reference in New Issue