Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PR] avformat/rtsp: replace the deprecated `localport` with `localrtpport` (PR #21633)
@ 2026-02-03  2:16 Jack Lau via ffmpeg-devel
  0 siblings, 0 replies; only message in thread
From: Jack Lau via ffmpeg-devel @ 2026-02-03  2:16 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Jack Lau

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 <jacklau1222gm@gmail.com>


>From 52419cf14c9ea96b34bd59f2c7ebc3f2777ff28e Mon Sep 17 00:00:00 2001
From: Jack Lau <jacklau1222gm@gmail.com>
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 <jacklau1222gm@gmail.com>
---
 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 -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-03  2:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-03  2:16 [FFmpeg-devel] [PR] avformat/rtsp: replace the deprecated `localport` with `localrtpport` (PR #21633) Jack Lau via ffmpeg-devel

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git