[FFmpeg-devel] [PATCH] Remove comparison of unsigned variable with zero

Carl Eugen Hoyos cehoyos
Thu May 8 18:01:26 CEST 2008


Hi!

dest_addr_len in udp.c is defined as size_t which is unsigned (if I 
googled that correctly). Attached patch removes a comparison of 
dest_addr_len with zero (fixes a warning when compiling with icc).

Carl Eugen
-------------- next part --------------
Index: libavformat/udp.c
===================================================================
--- libavformat/udp.c	(revision 13078)
+++ libavformat/udp.c	(working copy)
@@ -296,9 +296,6 @@
 
     /* set the destination address */
     s->dest_addr_len = udp_set_url(&s->dest_addr, hostname, port);
-    if (s->dest_addr_len < 0) {
-        return AVERROR(EIO);
-    }
     s->is_multicast = is_multicast_address(&s->dest_addr);
 
     return 0;



More information about the ffmpeg-devel mailing list