[FFmpeg-cvslog] rtpenc: Fix setting the max packet size

Martin Storsjö git at videolan.org
Thu Mar 1 03:20:20 CET 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Feb 29 14:50:06 2012 +0200| [07ec1f21404e2b97d18f1b1b9324ca0ec5ea81e6] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=07ec1f21404e2b97d18f1b1b9324ca0ec5ea81e6
---

 libavformat/rtpenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index e4ef0fc..cb0e241 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;



More information about the ffmpeg-cvslog mailing list