summaryrefslogtreecommitdiff
path: root/libavformat/rtmppkt.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-01-31 15:47:00 +0200
committerMartin Storsjö <martin@martin.st>2017-02-03 09:26:46 +0200
commita1a143adb0fd11c474221431417cff25db7d920f (patch)
tree8381b8db9d5f72c39d2a273c84d7a72710ebed81 /libavformat/rtmppkt.h
parentbcaedef1189a3531aa4dfb020627eb0133ffa89c (diff)
downloadffmpeg-a1a143adb0fd11c474221431417cff25db7d920f.tar.gz
rtmp: Rename packet types to closer match the spec
Also rename comments and log messages accordingly, and add clarifying comments for some hardcoded values. The previous names were taken from older, reverse engineered references. These names match the official public rtmp specification, and matches the names used by wirecast in annotating captured streams. These names also avoid hardcoding the roles of server and client, since the handling of them is irrelevant of whether we act as server or client. The RTMP_PT_PING type maps to RTMP_PT_USER_CONTROL. The SERVER_BW and CLIENT_BW types are a bit more intertwined; RTMP_PT_SERVER_BW maps to RTMP_PT_WINDOW_ACK_SIZE and RTMP_PT_CLIENT_BW maps to RTMP_PT_SET_PEER_BW. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmppkt.h')
-rw-r--r--libavformat/rtmppkt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtmppkt.h b/libavformat/rtmppkt.h
index 149c153cad..eccd299b24 100644
--- a/libavformat/rtmppkt.h
+++ b/libavformat/rtmppkt.h
@@ -47,9 +47,9 @@ enum RTMPChannel {
typedef enum RTMPPacketType {
RTMP_PT_CHUNK_SIZE = 1, ///< chunk size change
RTMP_PT_BYTES_READ = 3, ///< number of bytes read
- RTMP_PT_PING, ///< ping
- RTMP_PT_SERVER_BW, ///< server bandwidth
- RTMP_PT_CLIENT_BW, ///< client bandwidth
+ RTMP_PT_USER_CONTROL, ///< user control
+ RTMP_PT_WINDOW_ACK_SIZE, ///< window acknowledgement size
+ RTMP_PT_SET_PEER_BW, ///< peer bandwidth
RTMP_PT_AUDIO = 8, ///< audio packet
RTMP_PT_VIDEO, ///< video packet
RTMP_PT_FLEX_STREAM = 15, ///< Flex shared stream