From a325dc2c9a914b69654c1f1116ffaae9d1c394e9 Mon Sep 17 00:00:00 2001 From: linbo <1034003879@qq.com> Date: Wed, 12 Aug 2026 15:16:36 +0800 Subject: [PATCH] fix(camera): register FFmpeg input devices --- cmvr-es/devices/camera/uvc_camera/src/uvc_camera.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmvr-es/devices/camera/uvc_camera/src/uvc_camera.cpp b/cmvr-es/devices/camera/uvc_camera/src/uvc_camera.cpp index 1bad4278..eb4179c0 100644 --- a/cmvr-es/devices/camera/uvc_camera/src/uvc_camera.cpp +++ b/cmvr-es/devices/camera/uvc_camera/src/uvc_camera.cpp @@ -265,9 +265,10 @@ bool UVCCamera::open_capture_() capture_error_.clear(); } + avdevice_register_all(); auto* input_format = av_find_input_format("v4l2"); if (!input_format) { - capture_error_ = "FFmpeg v4l2 input format is unavailable"; + capture_error_ = "FFmpeg was built without the v4l2 input device"; return false; }