mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/jpeg.go: renamed ParseScan to ParsePayload, updated call and comment
This commit is contained in:
parent
d4deb5b641
commit
657ed2f277
|
@ -72,7 +72,7 @@ func (e *Extractor) Extract(dst io.Writer, src io.Reader, delay time.Duration) e
|
|||
return fmt.Errorf("could not read RTP marker: %w", err)
|
||||
}
|
||||
|
||||
err = c.ParseScan(p, m)
|
||||
err = c.ParsePayload(p, m)
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not parse JPEG scan: %w", err)
|
||||
}
|
||||
|
|
|
@ -151,8 +151,8 @@ func NewCtx(d io.Writer) *Ctx {
|
|||
}
|
||||
}
|
||||
|
||||
// ParseScan will parse a JPEG scan from an RTP/JPEG payload and append
|
||||
func (c *Ctx) ParseScan(p []byte, m bool) error {
|
||||
// ParsePayload will parse an RTP/JPEG payload and append to current image.
|
||||
func (c *Ctx) ParsePayload(p []byte, m bool) error {
|
||||
b := newByteStream(p)
|
||||
_ = b.get8() // Ignore type-specific flag
|
||||
|
||||
|
|
Loading…
Reference in New Issue