Originally committed as revision 1565 to svn://svn.ffmpeg.org/ffmpeg/trunk
* option: 'multicast=1' : enable multicast
* 'ttl=n' : set the ttl value (for multicast only)
* 'localport=n' : set the local port
* option: 'multicast=1' : enable multicast
* 'ttl=n' : set the ttl value (for multicast only)
* 'localport=n' : set the local port
+ * 'pkt_size=n' : set max packet size
*
* @param s1 media file context
* @param uri of the remote server
*
* @param s1 media file context
* @param uri of the remote server
char buf[256];
h->is_streamed = 1;
char buf[256];
h->is_streamed = 1;
+ h->max_packet_size = 1472;
is_output = (flags & URL_WRONLY);
is_output = (flags & URL_WRONLY);
if (find_info_tag(buf, sizeof(buf), "localport", p)) {
s->local_port = strtol(buf, NULL, 10);
}
if (find_info_tag(buf, sizeof(buf), "localport", p)) {
s->local_port = strtol(buf, NULL, 10);
}
+ if (find_info_tag(buf, sizeof(buf), "pkt_size", p)) {
+ h->max_packet_size = strtol(buf, NULL, 10);
+ }
}
/* fill the dest addr */
}
/* fill the dest addr */
- h->max_packet_size = 1472; /* XXX: probe it ? */
return 0;
fail:
if (udp_fd >= 0)
return 0;
fail:
if (udp_fd >= 0)