summaryrefslogtreecommitdiff
path: root/libavformat/srtpproto.c
diff options
context:
space:
mode:
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