This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 6f2f3755a0 avformat/whip: disable DTLS certificate verification
6f2f3755a0 is described below

commit 6f2f3755a06bdab40028dd8bfcfe91e057aac845
Author:     Jack Lau <[email protected]>
AuthorDate: Fri Jul 3 20:56:36 2026 +0800
Commit:     Jack Lau <[email protected]>
CommitDate: Sat Jul 4 02:39:08 2026 +0000

    avformat/whip: disable DTLS certificate verification
    
    Fix DTLS failure since 9549c9ad79ee399ff469a420223d4b6118498f7e
    
    WebRTC does not verify CA because it allows self-signed cerificate.
    
    Signed-off-by: Jack Lau <[email protected]>
---
 libavformat/whip.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/whip.c b/libavformat/whip.c
index edd9136d3e..ae2c116a4d 100644
--- a/libavformat/whip.c
+++ b/libavformat/whip.c
@@ -396,6 +396,8 @@ static av_cold int dtls_initialize(AVFormatContext *s)
     av_dict_set_int(&opts, "external_sock", 1, 0);
     av_dict_set_int(&opts, "use_srtp", 1, 0);
     av_dict_set_int(&opts, "listen", is_dtls_active ? 0 : 1, 0);
+    // Do not verify CA
+    av_dict_set_int(&opts, "verify", 0, 0);
     ret = ffurl_open_whitelist(&whip->dtls_uc, buf, AVIO_FLAG_READ_WRITE, 
&s->interrupt_callback,
         &opts, s->protocol_whitelist, s->protocol_blacklist, NULL);
     av_dict_free(&opts);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to