From 4cc47f190aabc1e4a9a64997348acc9088a63c44 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Mon, 4 Mar 2024 23:36:17 +0000 Subject: [PATCH] Fix build error lavf_device.cpp: In member function 'virtual int lavf_device::start()': lavf_device.cpp:102:49: error: invalid conversion from 'const AVInputFormat*' to 'AVInputFormat*' [-fpermissive] 102 | input_fmt = av_find_input_format("mjpeg"); | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ | | | const AVInputFormat* --- lib/lavf_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);