diff -crB ffmpeg-2.6.3-orig/libavformat/udp.c ffmpeg-2.5.3/libavformat/udp.c
*** ffmpeg-2.6.3-orig/libavformat/udp.c	2015-03-03 15:54:00.000000000 +0530
--- ffmpeg-2.6.3/libavformat/udp.c	2015-04-08 14:46:30.000000000 +0530
***************
*** 181,186 ****
--- 181,191 ----
              log_net_error(NULL, AV_LOG_ERROR, "setsockopt(IP_ADD_MEMBERSHIP)");
              return -1;
          }
+ 	    int mc=0;
+ 	 	if(setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_ALL, (const void *)&mc, sizeof(mc)) < 0) 
+ 	  	{
+ 	  	    log_net_error(NULL, AV_LOG_ERROR, "setsockopt(IP_MULTICAST_ALL)");
+ 	 	}
      }
  #endif
  #if HAVE_STRUCT_IPV6_MREQ && defined(IPPROTO_IPV6)
diff -crB ffmpeg-2.6.3-orig/libavformat/utils.c ffmpeg-2.5.3/libavformat/utils.c
*** ffmpeg-2.6.3-orig/libavformat/utils.c	2015-01-10 09:51:16.000000000 +0530
--- ffmpeg-2.6.3/libavformat/utils.c	2015-04-08 19:29:17.763130726 +0530
***************
*** 3431,3437 ****
      if (ret >= 0 && ic->nb_streams)
          /* We could not have all the codec parameters before EOF. */
          ret = -1;
!     for (i = 0; i < ic->nb_streams; i++) {
          const char *errmsg;
          st = ic->streams[i];
          if (!has_codec_parameters(st, &errmsg)) {
--- 3431,3438 ----
      if (ret >= 0 && ic->nb_streams)
          /* We could not have all the codec parameters before EOF. */
          ret = -1;
!     int breakloop = 0;
!     for (i = 0; i < ic->nb_streams&&breakloop==0; i++) {
          const char *errmsg;
          st = ic->streams[i];
          if (!has_codec_parameters(st, &errmsg)) {
***************
*** 3441,3446 ****
--- 3442,3452 ----
                     "Could not find codec parameters for stream %d (%s): %s\n"
                     "Consider increasing the value for the 'analyzeduration' and 'probesize' options\n",
                     i, buf, errmsg);
+             if(strstr(buf,"h264"))
+             {
+ 				av_log(ic, AV_LOG_WARNING,"Quitting as video stream could not be decoded\n");
+ 				breakloop = 1;
+ 			}
          } else {
              ret = 0;
          }
***************
*** 3460,3465 ****
--- 3466,3476 ----
      if (ic->pb)
          av_log(ic, AV_LOG_DEBUG, "After avformat_find_stream_info() pos: %"PRId64" bytes read:%"PRId64" seeks:%d frames:%d\n",
                 avio_tell(ic->pb), ic->pb->bytes_read, ic->pb->seek_count, count);
+     if(breakloop!=0)
+     {
+     	ret = -1;
+     	ic->nb_streams=0;
+     }
      return ret;
  }
