From 350ad50bf45d1c2930ac249e3cbcc5b0aebd626b Mon Sep 17 00:00:00 2001 From: Andrew Van Til Date: Fri, 5 Apr 2013 01:45:52 +0200 Subject: lavf: Use RTP_MAX_PACKET_LENGTH instead of 1500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/srtpproto.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/srtpproto.c') diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c index 1cacfdbb06..f9b94d7e91 100644 --- a/libavformat/srtpproto.c +++ b/libavformat/srtpproto.c @@ -25,6 +25,7 @@ #include "url.h" #include "internal.h" +#include "rtpdec.h" #include "srtp.h" typedef struct SRTPProtoContext { @@ -33,7 +34,7 @@ typedef struct SRTPProtoContext { const char *out_suite, *out_params; const char *in_suite, *in_params; struct SRTPContext srtp_out, srtp_in; - uint8_t encryptbuf[1500]; + uint8_t encryptbuf[RTP_MAX_PACKET_LENGTH]; } SRTPProtoContext; #define D AV_OPT_FLAG_DECODING_PARAM -- cgit v1.2.3