Browse Source

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>
tags/n0.11
Martin Storsjö 13 years ago
parent
commit
07ec1f2140
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtpenc.c

+ 1
- 1
libavformat/rtpenc.c View File

@@ -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;


Loading…
Cancel
Save