summaryrefslogtreecommitdiff
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-07 07:58:56 +0000
committerMartin Storsjö <martin@martin.st>2010-10-07 07:58:56 +0000
commit55b6bd1c01be167f0fcea2ec181d644e24c31454 (patch)
treeee1f2c3cd4008d12b54f53ca9ffbcd4d4b9081bc /libavformat/udp.c
parent7ac57fa5eb117d43f95be80acd9df310eecc6d07 (diff)
Convert ff_is_multicast_address to take a struct sockaddr parameter
Not all users of this function will have a full struct sockaddr_storage available, and casting other sockaddrs to sockaddr_storage is wrong, while any sockaddr can be cast to a base sockaddr. Originally committed as revision 25388 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index bfb9b77495..2a4a885600 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -254,7 +254,7 @@ int udp_set_remote_url(URLContext *h, const char *uri)
if (s->dest_addr_len < 0) {
return AVERROR(EIO);
}
- s->is_multicast = ff_is_multicast_address(&s->dest_addr);
+ s->is_multicast = ff_is_multicast_address((struct sockaddr*) &s->dest_addr);
return 0;
}