Commit 33a5956d8b for ffmpeg

commit 33a5956d8be8231ce35e38c22bea7cb14d3c8d8c
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Sun Nov 15 22:02:22 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 <michael@niedermayer.cc>

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 {