Skip to content

Commit

Permalink
Include payload type in enum
Browse files Browse the repository at this point in the history
Including the payload type in each enumerated name e.g. `reserved19` for payload type 19, which is reserved in the RTP spec. Done for two reasons:

* logging/printing enumerated type variables will show the payload type
* finding the next free reserved/unassigned label is simpler and unambiguous
  • Loading branch information
john-aws committed Jul 12, 2021
1 parent 82d9493 commit 4779034
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions network/rtp_packet.ksy
Expand Up @@ -78,18 +78,18 @@ enums:
16: dvi4_3
17: dvi4_4
18: g729
19: reserved3
20: unassigned1
21: unassigned2
22: unassigned3
23: unassigned4
24: unassigned5
19: reserved19
20: unassigned20
21: unassigned21
22: unassigned22
23: unassigned23
24: unassigned24
25: celb
26: jpeg
27: unassigned6
27: unassigned27
28: nv
29: unassigned7
30: unassigned8
29: unassigned29
30: unassigned30
31: h261
32: mpv
33: mp2t
Expand Down

0 comments on commit 4779034

Please sign in to comment.