projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36748d4
)
udp: Fix receiving large udp packets
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 28 Jun 2013 21:58:13 +0000
(23:58 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 28 Jun 2013 22:10:15 +0000
(
00:10
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/udp.c
patch
|
blob
|
history
diff --git
a/libavformat/udp.c
b/libavformat/udp.c
index
e8a01db
..
744b990
100644
(file)
--- a/
libavformat/udp.c
+++ b/
libavformat/udp.c
@@
-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 */