View Single Post
  #33  
Old 04-17-2013, 03:40 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: Customized rtmpdump binaries with patch file


Quote:
Originally Posted by RedPenguin View Post
It looks like newer rtmpsrv is giving a very similar error to older rtmpsuck.

http://pastebin.com/tWJEYA28
i seem to have pinpointed the issue. the main issue was that countAMF and dumpAMF functions in rtmpsrv were not taking new array types into consideration hence generating wrong command line in case there was any extra parameters to connect object.

change following in rtmpsrv.c and try:
countAMF:
Code:
      len += 2;
      if (p->p_name.av_val)
	len += p->p_name.av_len + 1;
      if((p->p_type == AMF_ECMA_ARRAY) || (p->p_type == AMF_STRICT_ARRAY))
        p->p_type = AMF_OBJECT;
      switch(p->p_type)
	{
	case AMF_BOOLEAN:
dumpAMF:
Code:
      argv[ac].av_val = ptr;
      if (p->p_name.av_val)
	*ptr++ = 'N';
      if((p->p_type == AMF_ECMA_ARRAY) || (p->p_type == AMF_STRICT_ARRAY))
        p->p_type = AMF_OBJECT;
      *ptr++ = opt[p->p_type];
      *ptr++ = ':';
      if (p->p_name.av_val)
Reply With Quote