From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 222E24B53C for ; Wed, 7 Aug 2024 07:03:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8DD1868DAED; Wed, 7 Aug 2024 10:03:09 +0300 (EEST) Received: from pcteor1.pcteor1.mi.infn.it (pcteor1.mi.infn.it [192.84.139.215]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 01FFA68D7A9 for ; Wed, 7 Aug 2024 10:03:02 +0300 (EEST) Received: from lcm.mi.infn.it (link.pcteor1.mi.infn.it [192.168.0.103]) by pcteor1.pcteor1.mi.infn.it (Postfix) with SMTP id 5558E80815 for ; Wed, 7 Aug 2024 09:03:01 +0200 (CEST) Received: by lcm.mi.infn.it (sSMTP sendmail emulation); Wed, 07 Aug 2024 09:03:01 +0200 From: "Stefano Mandelli" Date: Wed, 7 Aug 2024 09:03:01 +0200 To: ffmpeg-devel@ffmpeg.org Message-ID: <20240807070301.nxz6653ipwtspr3y@nanos8.pcteor1.mi.infn.it> MIME-Version: 1.0 User-Agent: NeoMutt/20170113 (1.7.2) Subject: [FFmpeg-devel] Extend the PATH buffer to 2048 for RTSP X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============6294545221983662021==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6294545221983662021== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rfzdwxgionha7uuu" Content-Disposition: inline --rfzdwxgionha7uuu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Recently, I have been experiencing an increasing number of user that use ffmpeg to retrive RTSP stream from personal mediaproxies (e.g. MediaMtx) with authorization based on JWT. The current length of PATH does not permit to insert the token in the URL failing the authorization with no possibilities to get the video. VLC has just modified the RSTP max URL length, and it permits to use token inside the URL. For these reasons, I propose this patch to extend the PATH buffer from 1024 to 2048 in order to use tokens and the authorization process based on JWT. diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 19b93df839..d8f45cf8d5 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1727,7 +1727,7 @@ void ff_rtsp_close_connections(AVFormatContext *s) int ff_rtsp_connect(AVFormatContext *s) { RTSPState *rt =3D s->priv_data; - char proto[128], host[1024], path[1024]; + char proto[128], host[1024], path[2048]; char tcpname[1024], cmd[MAX_URL_SIZE], auth[128]; const char *lower_rtsp_proto =3D "tcp"; int port, err, tcp_fd; --=20 .''`. Stefano Mandelli : :' : GitHub: algebrato=20 `. `' Discord: Algebrato#0039 `-=09 --rfzdwxgionha7uuu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE4urHvITPZHDkZty043dOqx6tCegFAmazHB4ACgkQ43dOqx6t CegUTw//QU+W8rt8eDSj8mBZkVAEO0mbt2YWhcwiVxRnbFbRRz6EQ2t8WxzbAHxh v7XQ/Jck9yM9twjx43yHX/FuX+vnH2jEiIbLkGcGfTv93mVfu8Zxh9A1CQ2p+I6G phWh4wEc5kUuZZaghX3UEmYcyNXXsAOijhE2Bjf4PiGiiDrGxEMpXSSA6mNsP6a0 GCefKgmda32mcvJGCnaB27Go706utYbon3H1J5C7fcuMHcaSxwUGoN05oh93bj70 9M2ZS8KoQaZbsogkfkE6OlxMtd6YDbXiYZvIhkgAkyIT9t+f9ddaf47iSVw0BvKz +dNyL/jCPxFOEUmmW7eSLVABzwqVtTY1NqcmkJ8J5ELAUvqs7yugnm/zUNYPRHil 8anVJmAWNq+vE414t8BMuYXcAsneuGm09lprYGZiDvrWIisftxRIsB8fjSFGkI8D ifn1BZJTiuAC+9DYHYPFj3ZoZ+fJh/JYy5ebkkSxYYAveG0JKTRHmO7IuL2BF48z +3/kOSGyy82PdS4wxWG5ded3AR/EPhOK9bmauJYttUvpTQTMOAMcXwF8iXn7cRBb 50caCR7pwDC9/7G0pMrU3cb3eMZpQgryBd2CYcRqEMrKialg7eyFkLPN7rgSx0sj BuczGuAkEy7qbC2l+crOqm+xD8EUOXPu7RrIYiBw91XD0kMNONk= =4bVC -----END PGP SIGNATURE----- --rfzdwxgionha7uuu-- --===============6294545221983662021== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============6294545221983662021==--