[FFmpeg-devel] Realmedia patch

Luca Abeni lucabe72
Wed Sep 17 23:14:06 CEST 2008


Hi Ronald,

Ronald S. Bultje wrote:
[...]
> Index: ffmpeg-svn/libavformat/rtsp.c
> ===================================================================
> --- ffmpeg-svn.orig/libavformat/rtsp.c	2008-09-14 10:55:44.000000000 -0400
> +++ ffmpeg-svn/libavformat/rtsp.c	2008-09-14 10:57:10.000000000 -0400
> @@ -945,8 +945,11 @@
>          rtp_opened:
>              port = rtp_get_local_port(rtsp_st->rtp_handle);
>              snprintf(transport, sizeof(transport) - 1,
> -                     "%s/UDP;unicast;client_port=%d",
> -                     trans_pref, port);
> +                     "%s/UDP;", trans_pref);
> +            if (rt->server_type != RTSP_SERVER_REAL)
> +                av_strlcat(transport, "unicast;", sizeof(transport));
> +            av_strlcatf(transport, sizeof(transport),
> +                     "client_port=%d", port);
>              if (rt->server_type == RTSP_SERVER_RTP)
>                  av_strlcatf(transport, sizeof(transport), "-%d", port + 1);
>          }

The path itself is ok.
But it enables RTD over UDP, and I am not sure if this combination
is currently working. So, I'd suggest to apply the patch only after
you tested that RDT over UDP works well.
(otherwise, the side effect of this patch is to break real rtsp...)


			Luca




More information about the ffmpeg-devel mailing list