[rtmpdump] r220 - trunk/amf.c
hyc
subversion at mplayerhq.hu
Sat Jan 9 03:31:18 CET 2010
Author: hyc
Date: Sat Jan 9 03:31:17 2010
New Revision: 220
Log:
Fix AMF_Decode() end detection
Modified:
trunk/amf.c
Modified: trunk/amf.c
==============================================================================
--- trunk/amf.c Sat Jan 9 03:29:09 2010 (r219)
+++ trunk/amf.c Sat Jan 9 03:31:17 2010 (r220)
@@ -1038,12 +1038,12 @@ AMF_Decode(AMFObject * obj, const char *
obj->o_num = 0;
obj->o_props = NULL;
- while (nSize >= 3)
+ while (nSize > 0)
{
AMFObjectProperty prop;
int nRes;
- if (AMF_DecodeInt24(pBuffer) == AMF_OBJECT_END)
+ if (nSize >=3 && AMF_DecodeInt24(pBuffer) == AMF_OBJECT_END)
{
nSize -= 3;
bError = false;
More information about the rtmpdump
mailing list