aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtpenc.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.c
parent7c1e2e64667421f931ab48141517f19d309c7eea (diff)
downloadffmpeg-11edeaea3293c41ecf577a330422eabba35f76a2.tar.gz
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.c')
-rw-r--r--libavformat/rtpenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c
index cfa5f348fd..ae1d3e04c6 100644
--- a/libavformat/rtpenc.c
+++ b/libavformat/rtpenc.c
@@ -223,7 +223,6 @@ static int rtp_write_header(AVFormatContext *s1)
if (!s->max_frames_per_packet)
s->max_frames_per_packet = 15;
s->max_frames_per_packet = av_clip(s->max_frames_per_packet, 1, 15);
- s->max_payload_size -= 6; // ident+frag+tdt/vdt+pkt_num+pkt_length
s->num_frames = 0;
goto defaultcase;
case AV_CODEC_ID_ADPCM_G722: