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/srtp.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/srtp.c')
-rw-r--r-- | libavformat/srtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/srtp.c b/libavformat/srtp.c index 1fe34a7c5a..4628da2d48 100644 --- a/libavformat/srtp.c +++ b/libavformat/srtp.c @@ -419,7 +419,7 @@ static void test_encrypt(const uint8_t *data, int in_len, const char *suite, { struct SRTPContext enc = { 0 }, dec = { 0 }; int len; - char buf[1500]; + char buf[RTP_MAX_PACKET_LENGTH]; ff_srtp_set_crypto(&enc, suite, key); ff_srtp_set_crypto(&dec, suite, key); len = ff_srtp_encrypt(&enc, data, in_len, buf, sizeof(buf)); @@ -441,7 +441,7 @@ int main(void) static const char *aes128_32_suite = "AES_CM_128_HMAC_SHA1_32"; static const char *aes128_80_32_suite = "SRTP_AES128_CM_HMAC_SHA1_32"; static const char *test_key = "abcdefghijklmnopqrstuvwxyz1234567890ABCD"; - uint8_t buf[1500]; + uint8_t buf[RTP_MAX_PACKET_LENGTH]; struct SRTPContext srtp = { 0 }; int len; ff_srtp_set_crypto(&srtp, aes128_80_suite, aes128_80_key); |