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 ESMTPS id C43B94B7B0 for ; Thu, 30 Jan 2025 11:56:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2247568BF90; Thu, 30 Jan 2025 13:56:10 +0200 (EET) Received: from mail-108-mta218.mxroute.com (mail-108-mta218.mxroute.com [136.175.108.218]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DAD5B68BBCC for ; Thu, 30 Jan 2025 13:56:02 +0200 (EET) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta218.mxroute.com (ZoneMTA) with ESMTPSA id 194b7116ef2000310e.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 30 Jan 2025 11:56:00 +0000 X-Zone-Loop: df09b3083a6d53a9ebabe94fa42c0f638d7df9da56f8 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wallboy.ca; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To: From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=WP60iwVMaLO5Nd2lXMb8GdnPIdS61sJyBeID/H4wLIo=; b=x 4FYszEAUIf5siZH1c2PAZBQBIhRap2Z20/1WXSEYpDvQcPnxL+pukr9/+ZnrCaS7EzCsVlaMnO3Mj DozAqml37phpwQUPiTpCHGATiUsHzw/v7DCASIchwI5RmCFYrw3zqx88UZ9U+Tr4N4jctQN+X+BAT dKTO55iFKQUVk5LaOmVFa+xTz5z64SEhp7xvh8BSenss3QpC35wIr+fg7nSHobfg2mSD2+c9mwra+ qXYIW3gPqBCepTEw5RybuAjPTBLTQF03L7I7FYWjHO7H395iBzRQ+xjzqN4cGDcCShi28NdPyPISb v4zw07wMAPAmcRNKNb97pBVXpTwD0FU1g==; From: Adam Wall To: ffmpeg-devel@ffmpeg.org Date: Thu, 30 Jan 2025 05:55:55 -0600 Message-ID: <20250130115555.4792-1-wallboy@wallboy.ca> MIME-Version: 1.0 X-Authenticated-Id: wallboy@wallboy.ca Subject: [FFmpeg-devel] [PATCH] avformat/rtmp: Increase filename size to allow for longer playpaths 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 Cc: Adam Wall Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: The current filename length for the stream name when RTMP is acting as a server is too short. Certain services such as Amazon IVS use very long streamkeys (close to 500 characters) when using the new enhanced RTMP multitrack feature. When using software such as OBS that can utilize Amazon IVS multitrack and specifying a custom RTMP server, where that server is FFmpeg RTMP in listen mode, then the key that gets passed over the publish commands exceeds the current 128 length limit, resulting in a "name too long" error. This commit simply increases the filename size to accomodate these longer stream names. Signed-off-by: Adam Wall --- libavformat/rtmpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 4095ae9421..d34678144e 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -1943,7 +1943,7 @@ static int send_invoke_response(URLContext *s, RTMPPacket *pkt) { RTMPContext *rt = s->priv_data; double seqnum; - char filename[128]; + char filename[1024]; char command[64]; int stringlen; char *pchar; -- 2.48.1 _______________________________________________ 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".