This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 28fb3f5e9ea1b1951904026c0b91c7f3fcbdbc5a Author: Jack Lau <[email protected]> AuthorDate: Fri Jan 23 11:02:24 2026 +0800 Commit: Gyan Doshi <[email protected]> CommitDate: Wed Jan 28 10:47:07 2026 +0000 avformat/tls_gnutls: set srtp profile when it is enabled Signed-off-by: Jack Lau <[email protected]> --- libavformat/tls_gnutls.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libavformat/tls_gnutls.c b/libavformat/tls_gnutls.c index 1c1c3c424c..e6d73bff61 100644 --- a/libavformat/tls_gnutls.c +++ b/libavformat/tls_gnutls.c @@ -604,6 +604,16 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op gnutls_dtls_set_mtu(c->session, s->mtu); } gnutls_set_default_priority(c->session); + + if (s->use_srtp) { + ret = gnutls_srtp_set_profile(c->session, GNUTLS_SRTP_AES128_CM_HMAC_SHA1_80); + if (ret < 0) { + av_log(c, AV_LOG_ERROR, "Unable to set SRTP profile: %s\n", gnutls_strerror(ret)); + ret = AVERROR(EINVAL); + goto fail; + } + } + if (!s->external_sock) { ret = tls_handshake(h); if (ret < 0) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
