[libav-devel] [PATCH 2/4] rtmppkt: Add a descriptive comment

Martin Storsjö martin at martin.st
Wed Mar 5 15:11:57 CET 2014


From: Martin Panter <vadmium at gmail.com>

---
 libavformat/rtmppkt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index fb3726b..a8432c8 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
@@ -194,7 +194,7 @@ static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p,
     type  = prev_pkt[channel_id].type;
     extra = prev_pkt[channel_id].extra;
 
-    hdr >>= 6;
+    hdr >>= 6; // header size indicator
     if (hdr == RTMP_PS_ONEBYTE) {
         ts_field = prev_pkt[channel_id].ts_delta;
     } else {
-- 
1.8.3.4 (Apple Git-47)



More information about the libav-devel mailing list