Commit f16d2f15d6 for ffmpeg

commit f16d2f15d6cb14d556a5cb9a566609de0c90f9d3
Author: Steve Banik <stevebanik@gmail.com>
Date:   Mon Nov 16 12:40:15 2026 -0600

    avdevice/avfoundation: return AVERROR_EXIT when list_devices is set

    When listing devices, avf_read_header jumped to fail without setting
    a return code, causing it to fall through and return AVERROR(EIO).
    Returning AVERROR_EXIT aligns avfoundation with other indevs (dshow,
    v4l2, decklink) and signals clean termination after listing.

diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 8b7e728279..7348edb085 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -1132,7 +1132,8 @@ static int avf_read_header(AVFormatContext *s)
             int index = [devices indexOfObject:device];
             avf_log_device_entry(ctx, index, device);
         }
-         goto fail;
+        ret = AVERROR_EXIT;
+        goto fail;
     }

     // parse input filename for video and audio device