| 243 | |
| 244 | #if CONFIG_RTPDEC |
| 245 | static 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 | |
| 263 | static void finalize_rtp_handler_init(AVFormatContext *s, RTSPStream *rtsp_st, |
| 264 | AVStream *st) |
no test coverage detected