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

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit 33f37edd07b6ebf5d85e93f596fbcb00c1256475
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Nov 15 22:02:22 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 22:30:16 2026 +0100

    avformat/network: take the wakeup channel as non-const in 
ff_network_wait_fd_wakeup()
    
    C11 does not allow atomic_load() on a pointer to a const atomic object,
    clang 6.0 rejects it:
    
    libavformat/network.c:208:9: error: address argument to atomic operation 
must be a pointer to non-const _Atomic type
    
    Fixes: build with clang 6.0
    Regression since: 2f74158ddf8
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 33a5956d8be8231ce35e38c22bea7cb14d3c8d8c)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/network.c | 2 +-
 libavformat/network.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/network.c b/libavformat/network.c
index 4d2a2a9654..d483d11131 100644
--- a/libavformat/network.c
+++ b/libavformat/network.c
@@ -192,7 +192,7 @@ void ff_network_wakeup_close(FFNetWakeup *w)
 }
 
 int ff_network_wait_fd_wakeup(int fd, int write, int timeout_ms,
-                              const FFNetWakeup *w)
+                              FFNetWakeup *w)
 {
     int ev = write ? POLLOUT : POLLIN;
     struct pollfd p[2] = {
diff --git a/libavformat/network.h b/libavformat/network.h
index f48b4d7b2a..41280e3f90 100644
--- a/libavformat/network.h
+++ b/libavformat/network.h
@@ -168,7 +168,7 @@ void ff_network_wakeup_close(FFNetWakeup *w);
  *         or a negative error code
  */
 int ff_network_wait_fd_wakeup(int fd, int write, int timeout_ms,
-                              const FFNetWakeup *w);
+                              FFNetWakeup *w);
 
 #if !HAVE_STRUCT_SOCKADDR_STORAGE
 struct sockaddr_storage {

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to