]> granicus.if.org Git - rtmpdump/commitdiff
Log error message for unsupported SWF Verification types
authorhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 8 Oct 2010 07:45:54 +0000 (07:45 +0000)
committerhyc <hyc@400ebc74-4327-4243-bc38-086b20814532>
Fri, 8 Oct 2010 07:45:54 +0000 (07:45 +0000)
git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@551 400ebc74-4327-4243-bc38-086b20814532

librtmp/rtmp.c

index 5c678fd165fadc15d478a3dcd26e4feff7537e67..3e4e00a02d35656564506774621528635a42eb34 100644 (file)
@@ -2789,11 +2789,17 @@ HandleCtrl(RTMP *r, const RTMPPacket *packet)
   if (nType == 0x1A)
     {
       RTMP_Log(RTMP_LOGDEBUG, "%s, SWFVerification ping received: ", __FUNCTION__);
+      if (packet->m_nBodySize > 2 && packet->m_body[2] > 0x01)
+       {
+         RTMP_Log(RTMP_LOGERROR,
+            "%s: SWFVerification Type %d request not supported! Patches welcome...",
+           __FUNCTION__, packet->m_body[2]);
+       }
 #ifdef CRYPTO
       /*RTMP_LogHex(packet.m_body, packet.m_nBodySize); */
 
       /* respond with HMAC SHA256 of decompressed SWF, key is the 30byte player key, also the last 30 bytes of the server handshake are applied */
-      if (r->Link.SWFSize)
+      else if (r->Link.SWFSize)
        {
          RTMP_SendCtrl(r, 0x1B, 0, 0);
        }