]> granicus.if.org Git - rtmpdump/commitdiff
Fix AMF3ReadString
authorHoward Chu <hyc@highlandsun.com>
Mon, 14 Dec 2015 17:49:19 +0000 (17:49 +0000)
committerHoward Chu <hyc@highlandsun.com>
Mon, 14 Dec 2015 17:57:54 +0000 (17:57 +0000)
Init str on unsupported references

librtmp/amf.c

index 73d1486474c754b258dd4224823b716c42d9c1fb..92612179ea43fa105b635b03e33b4cb837a2f6d0 100644 (file)
@@ -471,6 +471,8 @@ AMF3ReadString(const char *data, AVal *str)
       RTMP_Log(RTMP_LOGDEBUG,
          "%s, string reference, index: %d, not supported, ignoring!",
          __FUNCTION__, refIndex);
+         str->av_val = NULL;
+         str->av_len = 0;
       return len;
     }
   else