mirror of https://git.ffmpeg.org/ffmpeg.git
Give register_dynamic_payload_handler() in rtpdec.c a ff_ prefix and export
it so that I can use it in rdt.c as well. See discussion in "Realmedia patch" thread on ML. Originally committed as revision 15233 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
74cf481970
commit
0369d2b045
|
@ -118,6 +118,7 @@ struct RTPDemuxContext {
|
||||||
};
|
};
|
||||||
|
|
||||||
extern RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler;
|
extern RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler;
|
||||||
|
void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler);
|
||||||
|
|
||||||
int rtsp_next_attr_and_value(const char **p, char *attr, int attr_size, char *value, int value_size); ///< from rtsp.c, but used by rtp dynamic protocol handlers.
|
int rtsp_next_attr_and_value(const char **p, char *attr, int attr_size, char *value, int value_size); ///< from rtsp.c, but used by rtp dynamic protocol handlers.
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
|
||||||
static RTPDynamicProtocolHandler mp4v_es_handler= {"MP4V-ES", CODEC_TYPE_VIDEO, CODEC_ID_MPEG4};
|
static RTPDynamicProtocolHandler mp4v_es_handler= {"MP4V-ES", CODEC_TYPE_VIDEO, CODEC_ID_MPEG4};
|
||||||
static RTPDynamicProtocolHandler mpeg4_generic_handler= {"mpeg4-generic", CODEC_TYPE_AUDIO, CODEC_ID_AAC};
|
static RTPDynamicProtocolHandler mpeg4_generic_handler= {"mpeg4-generic", CODEC_TYPE_AUDIO, CODEC_ID_AAC};
|
||||||
|
|
||||||
static void register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
|
void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
|
||||||
{
|
{
|
||||||
handler->next= RTPFirstDynamicPayloadHandler;
|
handler->next= RTPFirstDynamicPayloadHandler;
|
||||||
RTPFirstDynamicPayloadHandler= handler;
|
RTPFirstDynamicPayloadHandler= handler;
|
||||||
|
@ -57,9 +57,9 @@ static void register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
|
||||||
|
|
||||||
void av_register_rtp_dynamic_payload_handlers(void)
|
void av_register_rtp_dynamic_payload_handlers(void)
|
||||||
{
|
{
|
||||||
register_dynamic_payload_handler(&mp4v_es_handler);
|
ff_register_dynamic_payload_handler(&mp4v_es_handler);
|
||||||
register_dynamic_payload_handler(&mpeg4_generic_handler);
|
ff_register_dynamic_payload_handler(&mpeg4_generic_handler);
|
||||||
register_dynamic_payload_handler(&ff_h264_dynamic_handler);
|
ff_register_dynamic_payload_handler(&ff_h264_dynamic_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int rtcp_parse_packet(RTPDemuxContext *s, const unsigned char *buf, int len)
|
static int rtcp_parse_packet(RTPDemuxContext *s, const unsigned char *buf, int len)
|
||||||
|
|
Loading…
Reference in New Issue