projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3225374
)
rtpenc: Fix setting the max packet size
author
Martin Storsjö
<martin@martin.st>
Wed, 29 Feb 2012 12:50:06 +0000
(14:50 +0200)
committer
Martin Storsjö
<martin@martin.st>
Wed, 29 Feb 2012 14:48:01 +0000
(16:48 +0200)
This fixes cases where the user had specified one desired MTU
via an option, and the protocol indicates another one.
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpenc.c
b/libavformat/rtpenc.c
index
e4ef0fc
..
cb0e241
100644
(file)
--- a/
libavformat/rtpenc.c
+++ b/
libavformat/rtpenc.c
@@
-112,7
+112,7
@@
static int rtp_write_header(AVFormatContext *s1)
if (s->max_packet_size) {
if (s1->pb->max_packet_size)
- s->max_packet_size = FFMIN(s->max_pa
yload
_size,
+ s->max_packet_size = FFMIN(s->max_pa
cket
_size,
s1->pb->max_packet_size);
} else
s->max_packet_size = s1->pb->max_packet_size;