diff --git a/lib/lavf_device.cpp b/lib/lavf_device.cpp index 324ea465..d32afab5 100644 --- a/lib/lavf_device.cpp +++ b/lib/lavf_device.cpp @@ -77,7 +77,7 @@ int lavf_device::start() if (ctx) return 0; AVDictionary *avopt_open_input = NULL; - AVInputFormat *input_fmt = NULL; + const AVInputFormat *input_fmt = NULL; bc_log(Debug, "Opening session from URL: %s", url); diff --git a/lib/v4l2_device_solo6x10.cpp b/lib/v4l2_device_solo6x10.cpp index 83bc4354..5281b896 100644 --- a/lib/v4l2_device_solo6x10.cpp +++ b/lib/v4l2_device_solo6x10.cpp @@ -235,7 +235,7 @@ int v4l2_device_solo6x10::start() av_dict_set(&open_opts, "input_format", fmtname, 0); av_dict_set(&open_opts, "format_whitelist", "v4l2", 0); - AVInputFormat *input_fmt = av_find_input_format("v4l2"); + const AVInputFormat *input_fmt = av_find_input_format("v4l2"); if (!input_fmt) { bc_log(Error, "v4l2 input format not found"); return -1; diff --git a/lib/v4l2_device_tw5864.cpp b/lib/v4l2_device_tw5864.cpp index 18704ebf..25bbfb35 100644 --- a/lib/v4l2_device_tw5864.cpp +++ b/lib/v4l2_device_tw5864.cpp @@ -242,7 +242,7 @@ int v4l2_device_tw5864::start() av_dict_set(&open_opts, "input_format", "h264", 0); av_dict_set(&open_opts, "format_whitelist", "v4l2", 0); - AVInputFormat *input_fmt = av_find_input_format("v4l2"); + const AVInputFormat *input_fmt = av_find_input_format("v4l2"); if (!input_fmt) { bc_log(Error, "v4l2 input format not found"); return -1;