[FFmpeg-devel] [PATCH] Avoid sending packets to network when multicast ttl is 0 in udp

Michael Niedermayer michael at niedermayer.cc
Thu Jul 21 02:18:18 EEST 2016


On Wed, Jul 20, 2016 at 05:38:10PM +0430, Omid Ghaffarinia wrote:
> Thanks for testing in mingw
> New patch attached, which should work now.

still fails, even on ubuntu:
libavformat/udp.c: In function ‘udp_set_multicast_ttl’:
libavformat/udp.c:367:13: warning: passing argument 1 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
libavformat/udp.c:328:12: note: expected ‘struct URLContext *’ but argument is of type ‘struct sockaddr_storage *’
libavformat/udp.c:367:13: warning: passing argument 2 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
libavformat/udp.c:328:12: note: expected ‘struct sockaddr_storage *’ but argument is of type ‘const char *’
libavformat/udp.c:367:13: error: too few arguments to function ‘udp_set_url’
libavformat/udp.c:328:12: note: declared here
libavformat/udp.c:376:13: warning: passing argument 1 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
libavformat/udp.c:328:12: note: expected ‘struct URLContext *’ but argument is of type ‘struct sockaddr_storage *’
libavformat/udp.c:376:13: warning: passing argument 2 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
libavformat/udp.c:328:12: note: expected ‘struct sockaddr_storage *’ but argument is of type ‘const char *’
libavformat/udp.c:376:13: error: too few arguments to function ‘udp_set_url’
libavformat/udp.c:328:12: note: declared here
libavformat/udp.c: In function ‘udp_open’:
libavformat/udp.c:907:17: warning: passing argument 1 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
libavformat/udp.c:328:12: note: expected ‘struct URLContext *’ but argument is of type ‘struct sockaddr_storage *’
libavformat/udp.c:907:17: warning: passing argument 2 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
libavformat/udp.c:328:12: note: expected ‘struct sockaddr_storage *’ but argument is of type ‘const char *’
libavformat/udp.c:907:17: error: too few arguments to function ‘udp_set_url’
libavformat/udp.c:328:12: note: declared here


on mingw64:
CC      libavformat/udp.o
src/libavformat/udp.c: In function ‘udp_set_multicast_ttl’:
src/libavformat/udp.c:367:13: warning: passing argument 1 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
src/libavformat/udp.c:328:12: note: expected ‘struct URLContext *’ but argument is of type ‘struct sockaddr_storage *’
src/libavformat/udp.c:367:13: warning: passing argument 2 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
src/libavformat/udp.c:328:12: note: expected ‘struct sockaddr_storage *’ but argument is of type ‘const char *’
src/libavformat/udp.c:367:13: error: too few arguments to function ‘udp_set_url’
src/libavformat/udp.c:328:12: note: declared here
src/libavformat/udp.c:376:13: warning: passing argument 1 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
src/libavformat/udp.c:328:12: note: expected ‘struct URLContext *’ but argument is of type ‘struct sockaddr_storage *’
src/libavformat/udp.c:376:13: warning: passing argument 2 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
src/libavformat/udp.c:328:12: note: expected ‘struct sockaddr_storage *’ but argument is of type ‘const char *’
src/libavformat/udp.c:376:13: error: too few arguments to function ‘udp_set_url’
src/libavformat/udp.c:328:12: note: declared here
src/libavformat/udp.c: In function ‘udp_open’:
src/libavformat/udp.c:907:17: warning: passing argument 1 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
src/libavformat/udp.c:328:12: note: expected ‘struct URLContext *’ but argument is of type ‘struct sockaddr_storage *’
src/libavformat/udp.c:907:17: warning: passing argument 2 of ‘udp_set_url’ from incompatible pointer type [enabled by default]
src/libavformat/udp.c:328:12: note: expected ‘struct sockaddr_storage *’ but argument is of type ‘const char *’
src/libavformat/udp.c:907:17: error: too few arguments to function ‘udp_set_url’
src/libavformat/udp.c:328:12: note: declared here
make: *** [libavformat/udp.o] Error 1
make: Target `all' not remade because of errors.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160721/9bbf99e0/attachment.sig>


More information about the ffmpeg-devel mailing list