]> granicus.if.org Git - rtmpdump/commitdiff
Fix FLV timestamps during resume
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 25 Feb 2011 05:51:40 +0000 (05:51 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 25 Feb 2011 05:51:40 +0000 (05:51 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@557 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp.c

index e6e8ed8a21c9894273dfd2996481450c626a993d..e2925a72688f807ee61fa4d6e0a05e791b9c8ac5 100644 (file)
@@ -4083,7 +4083,7 @@ Read_1_Packet(RTMP *r, char *buf, unsigned int buflen)
          /* grab first timestamp and see if it needs fixing */
          nTimeStamp = AMF_DecodeInt24(packetBody + 4);
          nTimeStamp |= (packetBody[7] << 24);
-         delta = packet.m_nTimeStamp - nTimeStamp;
+         delta = packet.m_nTimeStamp - nTimeStamp + r->m_read.nResumeTS;
 
          while (pos + 11 < nPacketLen)
            {