[rtmpdump] r442 - trunk/librtmp/rtmp.c

hyc subversion at mplayerhq.hu
Wed Apr 21 04:36:37 CEST 2010


Author: hyc
Date: Wed Apr 21 04:36:36 2010
New Revision: 442

Log:
More trivial cleanup

Modified:
   trunk/librtmp/rtmp.c

Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c	Wed Apr 21 04:26:00 2010	(r441)
+++ trunk/librtmp/rtmp.c	Wed Apr 21 04:36:36 2010	(r442)
@@ -3805,8 +3805,8 @@ Read_1_Packet(RTMP *r, char *buf, int bu
 	  int delta;
 
 	  /* grab first timestamp and see if it needs fixing */
-	  nTimeStamp = AMF_DecodeInt24(packetBody + pos + 4);
-	  nTimeStamp |= (packetBody[pos + 7] << 24);
+	  nTimeStamp = AMF_DecodeInt24(packetBody + 4);
+	  nTimeStamp |= (packetBody[7] << 24);
 	  delta = packet.m_nTimeStamp - nTimeStamp;
 
 	  while (pos + 11 < nPacketLen)
@@ -3817,7 +3817,7 @@ Read_1_Packet(RTMP *r, char *buf, int bu
 	      nTimeStamp |= (packetBody[pos + 7] << 24);
 
 	      if (delta)
-	        {
+		{
 		  nTimeStamp += delta;
 		  AMF_EncodeInt24(ptr+pos+4, pend, nTimeStamp);
 		  ptr[pos+7] = nTimeStamp>>24;


More information about the rtmpdump mailing list