From f4b59334bd898c47c9ac30999a346176548630a8 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 24 Feb 2015 12:45:15 +0200 Subject: rtpdec: Remove the now unused .alloc field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Always use the .priv_data_size field instead. Signed-off-by: Martin Storsjö --- libavformat/rtsp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index a4527d2c3a..3180d5bb94 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -186,11 +186,7 @@ static void init_rtp_handler(RTPDynamicProtocolHandler *handler, rtsp_st->dynamic_handler = handler; if (st) st->need_parsing = handler->need_parsing; - if (handler->alloc) { - rtsp_st->dynamic_protocol_context = handler->alloc(); - if (!rtsp_st->dynamic_protocol_context) - rtsp_st->dynamic_handler = NULL; - } else if (handler->priv_data_size) { + if (handler->priv_data_size) { rtsp_st->dynamic_protocol_context = av_mallocz(handler->priv_data_size); if (!rtsp_st->dynamic_protocol_context) rtsp_st->dynamic_handler = NULL; -- cgit v1.2.3