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

kostya subversion at mplayerhq.hu
Wed Jul 22 09:15:24 CEST 2009


Author: kostya
Date: Wed Jul 22 09:15:24 2009
New Revision: 4770

Log:
Use stricter types for packet timestamp and extra field

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

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Wed Jul 22 09:09:39 2009	(r4769)
+++ rtmp/rtmppkt.c	Wed Jul 22 09:15:24 2009	(r4770)
@@ -71,7 +71,8 @@ int ff_rtmp_packet_read(URLContext *h, R
                         int chunk_size, RTMPPacket *prev_pkt)
 {
     uint8_t hdr, t, buf[16];
-    int channel_id, timestamp, data_size, offset = 0, extra = 0;
+    int channel_id, timestamp, data_size, offset = 0;
+    uint32_t extra = 0;
     uint8_t type;
 
     if (url_read(h, &hdr, 1) != 1) {

Modified: rtmp/rtmppkt.h
==============================================================================
--- rtmp/rtmppkt.h	Wed Jul 22 09:09:39 2009	(r4769)
+++ rtmp/rtmppkt.h	Wed Jul 22 09:15:24 2009	(r4770)
@@ -74,8 +74,8 @@ enum RTMPPacketSize {
 typedef struct RTMPPacket {
     uint8_t        channel_id; ///< RTMP channel ID
     RTMPPacketType type;       ///< packet type
-    int            timestamp;  ///< packet timestamp
-    int            extra;      ///< additional data
+    uint32_t       timestamp;  ///< packet timestamp
+    uint32_t       extra;      ///< additional data
     uint8_t        *data;      ///< packet payload
     int            data_size;  ///< packet payload size
 } RTMPPacket;


More information about the FFmpeg-soc mailing list