[FFmpeg-devel] [PATCH/RFC] sdp/udp: Refactoring of code, don't require a ?multicast option

Luca Abeni lucabe72
Thu Oct 7 08:45:03 CEST 2010

On 10/05/2010 03:37 PM, Martin Storsj? wrote:
> And a question more precisely to Luca A: The solution in patch #3 isn't
> all that pretty, but to be able to make it prettier, sdp_get_address and
> resolve_destination would have to be merged. Would you be ok with that?

After thinking a little bit about it, my preference would be to
have resolve_destination() returning an is_multicast value, and to do
	if (!is_multicast) {
	  ttl = 0;
after calling it. Then, the change to sdp_get_address() looks ok
(or, you can remove the "else *ttl=5" if you like).


More information about the ffmpeg-devel mailing list