summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorAndrew Van Til <andyvt@babgvant.com>2013-04-05 01:45:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-05 01:48:55 +0200
commit5ed9eebc24add4d713ac0deafecfc714502b0bf3 (patch)
tree028494ada65b7c6cdb4f97d128bc427fdb107bc9 /libavformat/rtsp.c
parentc430eb2d58d21e70e202a593929759e785c36036 (diff)
rtsp/rtp_read_header: Use RTP_MAX_PACKET_LENGTH instead of 1500
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 317893c5d0..fcc134f06f 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2134,7 +2134,7 @@ static int rtp_probe(AVProbeData *p)
static int rtp_read_header(AVFormatContext *s)
{
- uint8_t recvbuf[1500];
+ uint8_t recvbuf[RTP_MAX_PACKET_LENGTH];
char host[500], sdp[500];
int ret, port;
URLContext* in = NULL;