Skip to content

Commit

Permalink
udp: Fix receiving large udp packets
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Jun 28, 2013
1 parent 36748d4 commit 804c7b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libavformat/udp.c
Expand Up @@ -586,7 +586,11 @@ static int udp_open(URLContext *h, const char *uri, int flags)
}
/* handling needed to support options picking from both AVOption and URL */
s->circular_buffer_size *= 188;
h->max_packet_size = s->packet_size;
if (flags & AVIO_FLAG_WRITE) {
h->max_packet_size = s->packet_size;
} else {
h->max_packet_size = UDP_MAX_PKT_SIZE;
}
h->rw_timeout = s->timeout;

/* fill the dest addr */
Expand Down

0 comments on commit 804c7b2

Please sign in to comment.