-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy patherror.go
34 lines (27 loc) · 1.22 KB
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package rtp
import (
"errors"
)
var (
errHeaderSizeInsufficient = errors.New("RTP header size insufficient")
errHeaderSizeInsufficientForExtension = errors.New("RTP header size insufficient for extension")
errTooSmall = errors.New("buffer too small")
errHeaderExtensionsNotEnabled = errors.New("h.Extension not enabled")
errHeaderExtensionNotFound = errors.New("extension not found")
errRFC8285OneByteHeaderIDRange = errors.New(
"header extension id must be between 1 and 14 for RFC 5285 one byte extensions",
)
errRFC8285OneByteHeaderSize = errors.New(
"header extension payload must be 16bytes or less for RFC 5285 one byte extensions",
)
errRFC8285TwoByteHeaderIDRange = errors.New(
"header extension id must be between 1 and 255 for RFC 5285 two byte extensions",
)
errRFC8285TwoByteHeaderSize = errors.New(
"header extension payload must be 255bytes or less for RFC 5285 two byte extensions",
)
errRFC3550HeaderIDRange = errors.New("header extension id must be 0 for non-RFC 5285 extensions")
errInvalidRTPPadding = errors.New("invalid RTP padding")
)