From: Hong Changbin <[email protected]>
The loop continues even if the correct format is selected, which may result in
the selected_range is not in selected_format, finally failed to configure video
device.
---
libavdevice/avfoundation.m | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 61dac4b713..1318ce4a15 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -375,6 +375,9 @@ static int configure_video_device(AVFormatContext *s,
AVCaptureDevice *video_dev
break;
}
}
+
+ if (selected_range)
+ break;
}
}
--
2.38.1.windows.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".