Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
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*
  • Loading branch information
andrey-utkin committed Mar 4, 2024
1 parent e19e9f9 commit 4cc47f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lavf_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4cc47f1

Please sign in to comment.