summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_xiph.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-01 01:17:24 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-01 01:17:27 +0100
commit9e09931fb6a42446c3e370006eb585d0bbd4f501 (patch)
treeb2cb9a46bf27fbdbc525b27acc24a0dc08430cfc /libavformat/rtpenc_xiph.c
parent7e5300958885e8d7e81e4e0183580558183a9a5e (diff)
parent11edeaea3293c41ecf577a330422eabba35f76a2 (diff)
Merge commit '11edeaea3293c41ecf577a330422eabba35f76a2'
* commit '11edeaea3293c41ecf577a330422eabba35f76a2': rtpenc_xiph: Don't exclude headers from max_payload_size Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtpenc_xiph.c')
-rw-r--r--libavformat/rtpenc_xiph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c
index d5936774ba..0564b06531 100644
--- a/libavformat/rtpenc_xiph.c
+++ b/libavformat/rtpenc_xiph.c
@@ -36,7 +36,7 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size)
int max_pkt_size, xdt, frag;
uint8_t *q;
- max_pkt_size = s->max_payload_size;
+ max_pkt_size = s->max_payload_size - 6; // ident+frag+tdt/vdt+pkt_num+pkt_length
// set xiph data type
switch (*buff) {