diff options
author | Dmitry Volyntsev <xeioexception@gmail.com> | 2012-01-18 13:46:37 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-01-22 01:10:03 +0200 |
commit | 58f0978581bf736ac6888fe3013f0c5ac88bfbdc (patch) | |
tree | 14d211db8f9a18f912cb18edf97506044dd485d5 /libavcodec/bmv.c | |
parent | dbb06b8c0d7020d4a95ef8b2831aa58ec00145c7 (diff) | |
download | ffmpeg-58f0978581bf736ac6888fe3013f0c5ac88bfbdc.tar.gz |
rtsp: Use a random offset for trying to open UDP ports for RTP
This avoids (for all practical cases) the issue of reusing
the same UDP port as for an earlier connection. If the remote
doesn't know the previous session was closed, he might keep
on sending packets to that port. If we always start off trying
to open the same UDP port, we might get those packets intermixed
with the new ones.
This is occasionally an issue when testing RTSP stuff with
DSS, perhaps also with other servers.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/bmv.c')
0 files changed, 0 insertions, 0 deletions