[FFmpeg-soc] [soc]: r4562 - in rtmp: rtmppkt.c rtmppkt.h

kostya subversion at mplayerhq.hu
Wed Jul 1 12:26:36 CEST 2009


Author: kostya
Date: Wed Jul  1 12:26:35 2009
New Revision: 4562

Log:
Drop unneeded function for determining AMF tag size

Modified:
   rtmp/rtmppkt.c
   rtmp/rtmppkt.h

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Wed Jul  1 12:10:51 2009	(r4561)
+++ rtmp/rtmppkt.c	Wed Jul  1 12:26:35 2009	(r4562)
@@ -28,21 +28,6 @@
 
 #include "rtmppkt.h"
 
-static const int8_t amf_tag_sizes[17] = {
-    8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0
-};
-
-int rtmp_amf_tag_size(int type, const void *data)
-{
-    if (type == AMF_STRING_IN_OBJECT || type == AMF_STRING)
-        return strlen(data) + 2;
-    if (type > AMF_TYPED_OBJECT)
-        return -1;
-    if (type == AMF_LONG_STRING)
-        return strlen(data) + 4;
-    return amf_tag_sizes[type];
-}
-
 void rtmp_amf_write_tag(uint8_t **dst, AMFType type, const void *data)
 {
     if (type != AMF_OBJECT_END && type != AMF_STRING_IN_OBJECT)

Modified: rtmp/rtmppkt.h
==============================================================================
--- rtmp/rtmppkt.h	Wed Jul  1 12:10:51 2009	(r4561)
+++ rtmp/rtmppkt.h	Wed Jul  1 12:26:35 2009	(r4562)
@@ -103,8 +103,6 @@ int rtmp_packet_read(URLContext *h, RTMP
 int rtmp_packet_write(URLContext *h, RTMPPacket *p,
                       int chunk_size, RTMPPacket *prev_pkt);
 
-int rtmp_amf_tag_size(int type, const void *data);
-
 int rtmp_amf_skip_data(const uint8_t *data);
 
 int rtmp_amf_find_field(const uint8_t *data, const uint8_t *name,


More information about the FFmpeg-soc mailing list