[FFmpeg-devel] [PATCH] Send NAT punching packets when starting to read an RTP/UDP stream

Ronald S. Bultje rsbultje
Thu Feb 11 04:45:11 CET 2010

Hi Martin,

On Wed, Feb 10, 2010 at 3:58 PM, Martin Storsj? <martin at martin.st> wrote:
> The dummy packets sent from RealPlayer on Symbian are empty RTCP receiver
> reports (sent on both the RTP and RTCP ports), but due to the nature of
> the RTP protocol in libavformat, we can't force an RTCP packet on the RTP
> port, so instead I chose to send a minimal RTP packet with no payload
> content.

Does that work? I.e. have you tested that it still "fixes" the problem?

Also, the code should probably remain in rtsp.c, or at least add some
comment that it's used for RDT as well.

+    if (url_open_dyn_buf(&pb) < 0)
+        return;

Since you know the size in advance, you can use url_open_dyn_packet_buf().

Other than that, this is great, it's one such problem I've always
wanted to look into, but didn't have time for. (In fact, it's why I
tended to use TCP more than UDP...)


More information about the ffmpeg-devel mailing list