rtsp: Only set the ttl parameter if the server actually gave a value
authorMartin Storsjö <martin@martin.st>
Thu, 8 Mar 2012 13:32:39 +0000 (15:32 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 9 Mar 2012 13:04:32 +0000 (15:04 +0200)
commit6294d708b8be886767f6181169143c29c975938f
treed39a6e6cb15143498153941d4012dd5506dd75eb
parent2bfd92b33089b38ce73f845a3b30f94688742fd4
rtsp: Only set the ttl parameter if the server actually gave a value

Passing ttl=0 to the rtp/udp url contexts makes packets never
leave the host machine.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c