summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_xiph.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-02-26 13:39:17 +0200
committerMartin Storsjö <martin@martin.st>2015-02-28 22:54:04 +0200
commit11edeaea3293c41ecf577a330422eabba35f76a2 (patch)
tree23cd71f701156b97b696f30bd34928bc9f258b6c /libavformat/rtpenc_xiph.c
parent7c1e2e64667421f931ab48141517f19d309c7eea (diff)
rtpenc_xiph: Don't exclude headers from max_payload_size
This makes things more consistent by using the variable in the same way as in all other packetizers. Signed-off-by: Martin Storsjö <martin@martin.st>
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 ef31c048de..7d8883a353 100644
--- a/libavformat/rtpenc_xiph.c
+++ b/libavformat/rtpenc_xiph.c
@@ -35,7 +35,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) {