[FFmpeg-devel] [PATCH 1/2] libavformat/rtsp: Make source specific multicast work for rtsp streams

Michael Niedermayer michael at niedermayer.cc
Mon Feb 17 10:46:18 EET 2025


On Fri, Feb 14, 2025 at 12:08:24PM -0500, Rashad Tatum wrote:
> by first changing the RTSPSource to track the destination address
> obtained from the source filter. For each RTSPStream, only add the source
> filter from the sdp if sdp_ip string matches source-filter's destination
> address.
> 
> Before issuing the setup request, change the lower_transport to
> multicast if the sdp_ip is a multicast address.
> 
> Change the multicast case to append sources (from the source-filter) to
> the rtp url to make the source specific multicast join work.
> 
> Signed-off-by: Rashad Tatum <tatum.rashad at gmail.com>
> ---
>  libavformat/rtsp.c | 88 +++++++++++++++++++++++++++++++---------------
>  libavformat/rtsp.h |  3 +-
>  2 files changed, 62 insertions(+), 29 deletions(-)
> 
> diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
> index 5ea471b40c..0c65f8d1a4 100644
> --- a/libavformat/rtsp.c
> +++ b/libavformat/rtsp.c
> @@ -389,16 +389,18 @@ typedef struct SDPParseState {
>  } SDPParseState;
>   static void copy_default_source_addrs(struct RTSPSource **addrs, int
> count,
> -                                      struct RTSPSource ***dest, int
> *dest_count)
> +                                      struct RTSPSource ***dest, int
> *dest_count, const char* sdp_ip_str)

Applying: libavformat/rtsp: Make source specific multicast work for rtsp streams
error: patch fragment without header at line 41: @@ -448,6 +450,8 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
error: could not build fake ancestor
Patch failed at 0001 libavformat/rtsp: Make source specific multicast work for rtsp streams

This patch is corrupted by line breaks
Check your editors line/word wraping settings
OR
attach the patch
OR
use git send-email

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250217/7623e1bf/attachment.sig>


More information about the ffmpeg-devel mailing list