summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-02-29 14:50:06 +0200
committerMartin Storsjö <martin@martin.st>2012-02-29 16:48:01 +0200
commit07ec1f21404e2b97d18f1b1b9324ca0ec5ea81e6 (patch)
tree2720b5971ac0710a2052e7e97cffc9816694bb76 /libavformat/rtpenc.c
parent322537478b63c6bc01e640643550ff539864d790 (diff)
rtpenc: Fix setting the max packet size
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>
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r--libavformat/rtpenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index e4ef0fc92b..cb0e241329 100644
--- 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_payload_size,
+ s->max_packet_size = FFMIN(s->max_packet_size,
s1->pb->max_packet_size);
} else
s->max_packet_size = s1->pb->max_packet_size;