ffmpeg | branch: master | Nicolas George <geo...@nsup.org> | Fri Jun  3 
11:05:20 2016 +0200| [8b05a7ffe4d78c68cd0091aefa8b380c7c4afe7a] | committer: 
Nicolas George

lavf/udp: fix dead code.

Since d607861, service can not be NULL, only "0".
An UDP address with neither local port nor address leaves both
service and node to their default value, and POSIX specifies
that they are not allowed to be both NULL; "0" is equivalent
to an unspecified port for all currently known protocols.

Fix CID 1341570.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b05a7ffe4d78c68cd0091aefa8b380c7c4afe7a
---

 libavformat/udp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 0f35689..531e254 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -264,7 +264,7 @@ static struct addrinfo *udp_resolve_host(URLContext *h,
         res = NULL;
         av_log(h, AV_LOG_ERROR, "getaddrinfo(%s, %s): %s\n",
                node ? node : "unknown",
-               service ? service : "unknown",
+               service,
                gai_strerror(error));
     }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to