The branch, release/8.0 has been updated
       via  cb570f824dd38fccb5f048b7e5737d43bca6266d (commit)
      from  2790dd608cd60575a72f1541b2bcca5112964e46 (commit)


- Log -----------------------------------------------------------------
commit cb570f824dd38fccb5f048b7e5737d43bca6266d
Author:     Brad Smith <[email protected]>
AuthorDate: Sat Sep 20 01:51:45 2025 -0400
Commit:     Brad Smith <[email protected]>
CommitDate: Sun Nov 16 21:13:46 2025 -0500

    avformat/udp: fix warning about unused varible
    
    libavformat/udp.c:283:9: warning: unused variable 'i' [-Wunused-variable]
    
    Signed-off-by: Brad Smith <[email protected]>
    (cherry picked from commit db0b86a4adf3ffe592ea70e756d615e89138eee0)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 84f9d3e62e..c3c5579fde 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -280,14 +280,12 @@ static int udp_set_multicast_sources(URLContext *h,
                                      struct sockaddr_storage *sources,
                                      int nb_sources, int include)
 {
-    int i;
     if (addr->sa_family != AF_INET) {
 #if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE)
         /* For IPv4 prefer the old approach, as that alone works reliably on
          * Windows and it also supports supplying the interface based on its
          * address. */
-        int i;
-        for (i = 0; i < nb_sources; i++) {
+        for (int i = 0; i < nb_sources; i++) {
             struct group_source_req mreqs;
             int level = addr->sa_family == AF_INET ? IPPROTO_IP : IPPROTO_IPV6;
 
@@ -314,7 +312,7 @@ static int udp_set_multicast_sources(URLContext *h,
 #endif
     }
 #if HAVE_STRUCT_IP_MREQ_SOURCE && defined(IP_BLOCK_SOURCE)
-    for (i = 0; i < nb_sources; i++) {
+    for (int i = 0; i < nb_sources; i++) {
         struct ip_mreq_source mreqs;
         if (sources[i].ss_family != AF_INET) {
             av_log(h, AV_LOG_ERROR, "Source/block address %d is of incorrect 
protocol family\n", i + 1);

-----------------------------------------------------------------------

Summary of changes:
 libavformat/udp.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)


hooks/post-receive
-- 

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

Reply via email to