summaryrefslogtreecommitdiff
path: root/libavformat/srtpproto.c
diff options
context:
space:
mode:
authorAndrew Van Til <andyvt@babgvant.com>2013-04-05 01:45:52 +0200
committerMartin Storsjö <martin@martin.st>2013-04-09 10:36:43 +0300
commit350ad50bf45d1c2930ac249e3cbcc5b0aebd626b (patch)
tree4f074fc54ec28d8d62c260598cf70ceb23ffd67c /libavformat/srtpproto.c
parentbc0522dffacb9ef8f4eac8e47f73fea58c216799 (diff)
lavf: Use RTP_MAX_PACKET_LENGTH instead of 1500
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/srtpproto.c')
-rw-r--r--libavformat/srtpproto.c3
1 files changed, 2 insertions, 1 deletions
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