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

Git pushed a commit to branch master
in repository ffmpeg.

commit f16d2f15d6cb14d556a5cb9a566609de0c90f9d3
Author:     Steve Banik <[email protected]>
AuthorDate: Mon Nov 16 12:40:15 2026 -0600
Commit:     Marvin Scholz <[email protected]>
CommitDate: Tue Nov 17 03:58:12 2026 +0000

    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.
---
 libavdevice/avfoundation.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

-- 
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