diff options
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r-- | libavformat/rtpenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 32288684eb..88a0527566 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; |