PR #21633 opened by Jack Lau (JackLau) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21633 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21633.patch
The `localport` already deprecated in 3a29702cb6b8f9dcb1aa66bb65d04b392f9de98d Signed-off-by: Jack Lau <[email protected]> >From 52419cf14c9ea96b34bd59f2c7ebc3f2777ff28e Mon Sep 17 00:00:00 2001 From: Jack Lau <[email protected]> Date: Tue, 3 Feb 2026 10:10:15 +0800 Subject: [PATCH] avformat/rtsp: replace the deprecated `localport` with `localrtpport` The `localport` already deprecated in 3a29702cb6b8f9dcb1aa66bb65d04b392f9de98d Signed-off-by: Jack Lau <[email protected]> --- libavformat/rtsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index e8f44e571a..6b88da182c 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1567,7 +1567,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, AVDictionary *opts = map_to_opts(rt); ff_url_join(buf, sizeof(buf), "rtp", NULL, host, -1, - "?localport=%d", j); + "?localrtpport=%d", j); /* we will use two ports per rtp stream (rtp and rtcp) */ j += 2; err = ffurl_open_whitelist(&rtsp_st->rtp_handle, buf, AVIO_FLAG_READ_WRITE, @@ -2509,7 +2509,7 @@ static int sdp_read_header(AVFormatContext *s) } ff_url_join(url, sizeof(url), "rtp", NULL, namebuf, rtsp_st->sdp_port, - "?localport=%d&ttl=%d&connect=%d&write_to_source=%d", + "?localrtpport=%d&ttl=%d&connect=%d&write_to_source=%d", rtsp_st->sdp_port, rtsp_st->sdp_ttl, rt->rtsp_flags & RTSP_FLAG_FILTER_SRC ? 1 : 0, rt->rtsp_flags & RTSP_FLAG_RTCP_TO_SOURCE ? 1 : 0); -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
