[FFmpeg-devel] [PATCH] avfoundation, unsupported framerate/activeVideoMinFrameDuration

Roman Puttkammer rputtkammer at gmail.com
Wed Nov 15 04:49:40 EET 2017


Attached patch fixes an issue with avfoundation; the code continues to
loop through
the list of
supported formats/framerates even after finding the chosen one, ending up
with a bad format/rate
combination. (Code breaks out of one loop only instead of two.)


diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index e2ddf47dbe..463ae60b63 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -312,6 +312,7 @@ static int configure_video_device(AVFormatContext *s,
AVCaptureDevice *video_dev
+        if (selected_range) break;

     if (!selected_format) {

More information about the ffmpeg-devel mailing list