summaryrefslogtreecommitdiff
path: root/libavformat/rtp_internal.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-10-04 04:11:12 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-10-04 04:11:12 +0000
commited0aacc76eccf2b523352f0c74107e2f6ba9cf93 (patch)
treec6d6eb117f212699a5545135927130a31e7a11e9 /libavformat/rtp_internal.h
parentdd990075d62a981283de008b43cea0556fa81959 (diff)
Rename RTP payload contexts to PayloadContext, suggested by Luca in
"RDT/Realmedia patches #2" thread on ML. Originally committed as revision 15540 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp_internal.h')
-rw-r--r--libavformat/rtp_internal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavformat/rtp_internal.h b/libavformat/rtp_internal.h
index fdfb8ff02f..c1d9001a17 100644
--- a/libavformat/rtp_internal.h
+++ b/libavformat/rtp_internal.h
@@ -41,6 +41,7 @@ typedef struct {
uint32_t jitter; ///< estimated jitter.
} RTPStatistics;
+typedef struct PayloadContext PayloadContext;
/**
* Packet parsing for "private" payloads in the RTP specs.
*
@@ -65,10 +66,10 @@ typedef struct RTPDynamicProtocolHandler_s {
// may be null
int (*parse_sdp_a_line) (AVStream * stream,
- void *protocol_data,
+ PayloadContext *priv_data,
const char *line); ///< Parse the a= line from the sdp field
- void *(*open) (); ///< allocate any data needed by the rtp parsing for this dynamic data.
- void (*close)(void *protocol_data); ///< free any data needed by the rtp parsing for this dynamic data.
+ PayloadContext *(*open) (); ///< allocate any data needed by the rtp parsing for this dynamic data.
+ void (*close)(PayloadContext *protocol_data); ///< free any data needed by the rtp parsing for this dynamic data.
DynamicPayloadPacketHandlerProc parse_packet; ///< parse handler for this dynamic packet.
struct RTPDynamicProtocolHandler_s *next;
@@ -113,7 +114,7 @@ struct RTPDemuxContext {
/* dynamic payload stuff */
DynamicPayloadPacketHandlerProc parse_packet; ///< This is also copied from the dynamic protocol handler structure
- void *dynamic_protocol_context; ///< This is a copy from the values setup from the sdp parsing, in rtsp.c don't free me.
+ PayloadContext *dynamic_protocol_context; ///< This is a copy from the values setup from the sdp parsing, in rtsp.c don't free me.
int max_frames_per_packet;
};