[FFmpeg-devel] [PATCH] RTSP-MS 10/15: ASF header parsing
Ronald S. Bultje
rsbultje
Wed Feb 4 15:07:17 CET 2009
Hi,
On Wed, Feb 4, 2009 at 8:58 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Feb 04, 2009 at 08:35:10AM -0500, Ronald S. Bultje wrote:
> [...]
>> I know, it
>> doesn't add comments, [...]
> [...]
>> + RTSP_TRANSPORT_RDT,
>> + /**
>> + * This is not part of the public API and shouldn't be used outside ffmpeg.
>> + */
>> + RTSP_TRANSPORT_LAST
> [...]
>> - RTSP_TRANSPORT_RDT,
>> - RTSP_TRANSPORT_LAST
> [...]
Oh let me guess you don't want me to add that comment either? :-).
Ronald
-------------- next part --------------
Index: ffmpeg-svn/libavformat/rtsp.h
===================================================================
--- ffmpeg-svn.orig/libavformat/rtsp.h 2009-02-04 09:05:06.000000000 -0500
+++ ffmpeg-svn/libavformat/rtsp.h 2009-02-04 09:05:21.000000000 -0500
@@ -37,6 +37,12 @@
RTSP_LOWER_TRANSPORT_LAST
};
+enum RTSPTransport {
+ RTSP_TRANSPORT_RTP,
+ RTSP_TRANSPORT_RDT,
+ RTSP_TRANSPORT_LAST
+};
+
#define RTSP_DEFAULT_PORT 554
#define RTSP_MAX_TRANSPORTS 8
#define RTSP_TCP_MAX_PACKET_SIZE 1472
@@ -52,7 +58,7 @@
int server_port_min, server_port_max; /**< RTP ports */
int ttl; /**< ttl value */
uint32_t destination; /**< destination IP address */
- int transport;
+ enum RTSPTransport transport;
enum RTSPLowerTransport lower_transport;
} RTSPTransportField;
@@ -82,12 +88,6 @@
RTSP_SERVER_LAST
};
-enum RTSPTransport {
- RTSP_TRANSPORT_RTP,
- RTSP_TRANSPORT_RDT,
- RTSP_TRANSPORT_LAST
-};
-
typedef struct RTSPState {
URLContext *rtsp_hd; /* RTSP TCP connexion handle */
int nb_rtsp_streams;
More information about the ffmpeg-devel
mailing list