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

Function finalize_rtp_handler_init

libavformat/rtsp.c:263–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263static void finalize_rtp_handler_init(AVFormatContext *s, RTSPStream *rtsp_st,
264 AVStream *st)
265{
266 if (rtsp_st->dynamic_handler && rtsp_st->dynamic_handler->init) {
267 int ret = rtsp_st->dynamic_handler->init(s, st ? st->index : -1,
268 rtsp_st->dynamic_protocol_context);
269 if (ret < 0) {
270 if (rtsp_st->dynamic_protocol_context) {
271 if (rtsp_st->dynamic_handler->close)
272 rtsp_st->dynamic_handler->close(
273 rtsp_st->dynamic_protocol_context);
274 av_free(rtsp_st->dynamic_protocol_context);
275 }
276 rtsp_st->dynamic_protocol_context = NULL;
277 rtsp_st->dynamic_handler = NULL;
278 }
279 }
280}
281
282#if CONFIG_RTSP_DEMUXER
283static int init_satip_stream(AVFormatContext *s)

Callers 3

init_satip_streamFunction · 0.85
sdp_parse_rtpmapFunction · 0.85
sdp_parse_lineFunction · 0.85

Calls 1

av_freeFunction · 0.50

Tested by

no test coverage detected