[rtmpdump] [PATCH] Allow AMF_NULL

Steven Penny svnpenn at gmail.com
Mon Dec 10 09:38:52 CET 2012


If encountering AMF_NULL, print null instead of INVALID TYPE

Test page
http://www.slavishow.com/виктор-калев-в-образа-на-силвия-кацаро
---
 librtmp/rtmp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
index 0e00059..89e6f3f 100644
--- a/librtmp/rtmp.c
+++ b/librtmp/rtmp.c
@@ -3277,6 +3277,7 @@ DumpMetaData(AMFObject *obj)
 		       prop->p_vu.p_number != 0. ? "TRUE" : "FALSE");
 	      break;
 	    case AMF_STRING:
+	    case AMF_NULL:
 	      snprintf(str, 255, "%.*s", prop->p_vu.p_aval.av_len,
 		       prop->p_vu.p_aval.av_val);
 	      break;
-- 
1.7.9



More information about the rtmpdump mailing list