[rtmpdump] r128 - trunk/rtmp.c
hyc
subversion at mplayerhq.hu
Tue Dec 29 09:13:37 CET 2009
Author: hyc
Date: Tue Dec 29 09:13:36 2009
New Revision: 128
Log:
Fix prev commit
Modified:
trunk/rtmp.c
Modified: trunk/rtmp.c
==============================================================================
--- trunk/rtmp.c Tue Dec 29 09:12:09 2009 (r127)
+++ trunk/rtmp.c Tue Dec 29 09:13:36 2009 (r128)
@@ -140,9 +140,9 @@ bool
RTMPPacket_Alloc(RTMPPacket * p, int nSize)
{
char *ptr = calloc(1, nSize+RTMP_MAX_HEADER_SIZE);
- p->m_body = ptr + RTMP_MAX_HEADER_SIZE;
- if (!p->m_body)
+ if (!ptr)
return false;
+ p->m_body = ptr + RTMP_MAX_HEADER_SIZE;
p->m_nBytesRead = 0;
return true;
}
More information about the rtmpdump
mailing list