codec/mjpeg/extract.go: simplified error message when can't get RTP payload

This commit is contained in:
Saxon 2019-12-23 12:51:21 +10:30
parent 341af70d81
commit db0e292507
1 changed files with 1 additions and 1 deletions

View File

@ -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.