[FFmpeg-cvslog] r24575 - trunk/libavformat/udp.c

reimar subversion
Wed Jul 28 18:27:17 CEST 2010


Author: reimar
Date: Wed Jul 28 18:27:16 2010
New Revision: 24575

Log:
Check for udp_set_remote_url error.
Fixes issue 1784 (hang with nonsense URL/no network available).

Modified:
   trunk/libavformat/udp.c

Modified: trunk/libavformat/udp.c
==============================================================================
--- trunk/libavformat/udp.c	Wed Jul 28 17:03:05 2010	(r24574)
+++ trunk/libavformat/udp.c	Wed Jul 28 18:27:16 2010	(r24575)
@@ -355,7 +355,8 @@ static int udp_open(URLContext *h, const
         if (flags & URL_WRONLY)
             goto fail;
     } else {
-        udp_set_remote_url(h, uri);
+        if (udp_set_remote_url(h, uri) < 0)
+            goto fail;
     }
 
     if (s->is_multicast && !(h->flags & URL_WRONLY))



More information about the ffmpeg-cvslog mailing list