From: hyc Date: Fri, 25 Feb 2011 05:51:40 +0000 (+0000) Subject: Fix FLV timestamps during resume X-Git-Tag: v2.4~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c713f4c5c8e72369b48d15772e19d1c9ebd5a19;p=rtmpdump Fix FLV timestamps during resume git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@557 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c index e6e8ed8..e2925a7 100644 --- a/librtmp/rtmp.c +++ b/librtmp/rtmp.c @@ -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) {