[rtmpdump] Bug that creates malformed FLV files for live streams and a suggested fix

Kirill K kirill_pvt at mail.ru
Wed Jan 16 16:20:45 CET 2013


 Here we go:
---
 librtmp/rtmp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
index b966710..4506732 100644
--- a/librtmp/rtmp.c
+++ b/librtmp/rtmp.c
@@ -4998,6 +4998,7 @@ fail:
       memcpy(mybuf, flvHeader, sizeof(flvHeader));
       r->m_read.buf += sizeof(flvHeader);
       r->m_read.buflen -= sizeof(flvHeader);
+      cnt = sizeof(flvHeader);
 
       while (r->m_read.timestamp == 0)
         {
-- 
1.8.0.msysgit.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20130116/e5af6dfb/attachment.html>


More information about the rtmpdump mailing list