]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/srtpproto.c
avdevice: Add missing header for NULL_IF_CONFIG_SMALL
[ffmpeg] / libavformat / srtpproto.c
index 1cacfdbb06c1984a20c91f833dc8d84503602f13..1f818d78b44d0620a8a546c5e87dd3cbe8083bd5 100644 (file)
@@ -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
@@ -41,8 +42,8 @@ typedef struct SRTPProtoContext {
 static const AVOption options[] = {
     { "srtp_out_suite", "", offsetof(SRTPProtoContext, out_suite), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, E },
     { "srtp_out_params", "", offsetof(SRTPProtoContext, out_params), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, E },
-    { "srtp_in_suite", "", offsetof(SRTPProtoContext, in_suite), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, E },
-    { "srtp_in_params", "", offsetof(SRTPProtoContext, in_params), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, E },
+    { "srtp_in_suite", "", offsetof(SRTPProtoContext, in_suite), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D },
+    { "srtp_in_params", "", offsetof(SRTPProtoContext, in_params), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D },
     { NULL }
 };