mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
11 lines
225 B
Go
11 lines
225 B
Go
package jpeg
|
|
|
|
// StartOfImage is a SOI marker.
|
|
type StartOfImage struct{}
|
|
|
|
// Marshal encodes the marker.
|
|
func (StartOfImage) Marshal(buf []byte) []byte {
|
|
buf = append(buf, []byte{0xFF, MarkerStartOfImage}...)
|
|
return buf
|
|
}
|