MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / init_rtp_handler

Function init_rtp_handler

libavformat/rtsp.c:245–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244#if CONFIG_RTPDEC
245static void init_rtp_handler(const RTPDynamicProtocolHandler *handler,
246 RTSPStream *rtsp_st, AVStream *st)
247{
248 AVCodecParameters *par = st ? st->codecpar : NULL;
249 if (!handler)
250 return;
251 if (par)
252 par->codec_id = handler->codec_id;
253 rtsp_st->dynamic_handler = handler;
254 if (st)
255 ffstream(st)->need_parsing = handler->need_parsing;
256 if (handler->priv_data_size) {
257 rtsp_st->dynamic_protocol_context = av_mallocz(handler->priv_data_size);
258 if (!rtsp_st->dynamic_protocol_context)
259 rtsp_st->dynamic_handler = NULL;
260 }
261}
262
263static void finalize_rtp_handler_init(AVFormatContext *s, RTSPStream *rtsp_st,
264 AVStream *st)

Callers 3

init_satip_streamFunction · 0.85
sdp_parse_rtpmapFunction · 0.85
sdp_parse_lineFunction · 0.85

Calls 2

ffstreamFunction · 0.85
av_malloczFunction · 0.50

Tested by

no test coverage detected