fix(camera): register FFmpeg input devices
This commit is contained in:
parent
8850df3983
commit
a325dc2c9a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user