Browse code

5l trocadero: RTMP channel ID lies in range 3-65599, uint8_t is too small for it

Originally committed as revision 20717 to svn://svn.ffmpeg.org/ffmpeg/trunk

Kostya Shishkov authored on 2009/12/04 01:13:51
Showing 1 changed files
... ...
@@ -73,7 +73,7 @@ enum RTMPPacketSize {
73 73
  * structure for holding RTMP packets
74 74
  */
75 75
 typedef struct RTMPPacket {
76
-    uint8_t        channel_id; ///< RTMP channel ID (nothing to do with audio/video channels though)
76
+    int            channel_id; ///< RTMP channel ID (nothing to do with audio/video channels though)
77 77
     RTMPPacketType type;       ///< packet payload type
78 78
     uint32_t       timestamp;  ///< packet full timestamp
79 79
     uint32_t       ts_delta;   ///< timestamp increment to the previous one in milliseconds (latter only for media packets)