diff options
author | Andrew Van Til <andyvt@babgvant.com> | 2013-04-05 01:45:52 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-09 10:36:43 +0300 |
commit | 350ad50bf45d1c2930ac249e3cbcc5b0aebd626b (patch) | |
tree | 4f074fc54ec28d8d62c260598cf70ceb23ffd67c /libavformat/sapdec.c | |
parent | bc0522dffacb9ef8f4eac8e47f73fea58c216799 (diff) | |
download | ffmpeg-350ad50bf45d1c2930ac249e3cbcc5b0aebd626b.tar.gz |
lavf: Use RTP_MAX_PACKET_LENGTH instead of 1500
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/sapdec.c')
-rw-r--r-- | libavformat/sapdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/sapdec.c b/libavformat/sapdec.c index c1cdc8fb72..0280cead9c 100644 --- a/libavformat/sapdec.c +++ b/libavformat/sapdec.c @@ -27,6 +27,7 @@ #include "internal.h" #include "avio_internal.h" #include "url.h" +#include "rtpdec.h" #if HAVE_POLL_H #include <poll.h> #endif @@ -63,7 +64,7 @@ static int sap_read_header(AVFormatContext *s) { struct SAPState *sap = s->priv_data; char host[1024], path[1024], url[1024]; - uint8_t recvbuf[1500]; + uint8_t recvbuf[RTP_MAX_PACKET_LENGTH]; int port; int ret, i; AVInputFormat* infmt; @@ -186,7 +187,7 @@ static int sap_fetch_packet(AVFormatContext *s, AVPacket *pkt) int fd = ffurl_get_file_handle(sap->ann_fd); int n, ret; struct pollfd p = {fd, POLLIN, 0}; - uint8_t recvbuf[1500]; + uint8_t recvbuf[RTP_MAX_PACKET_LENGTH]; if (sap->eof) return AVERROR_EOF; |