skullanbones / mpeg2ts

A fast, cross-platform and modern C++ SDK for all your MPEG-2 transport stream media format needs following international specification ISO/IEC 13818-1.
Other
71 stars 6 forks source link

Failing to build under ubuntu 22.04 #61

Closed kohnech closed 12 months ago

kohnech commented 12 months ago

In file included from /home/runner/work/mpeg2ts/mpeg2ts/libs/mpeg2ts/src/JsonSettings.h:39, [132](https://github.com/skullanbones/mpeg2ts/actions/runs/6435208150/job/17475979377#step:5:133) from /home/runner/work/mpeg2ts/mpeg2ts/libs/mpeg2ts/src/JsonSettings.cc:27: [133](https://github.com/skullanbones/mpeg2ts/actions/runs/6435208150/job/17475979377#step:5:134) /home/runner/work/mpeg2ts/mpeg2ts/3rd-party/json-3.9.1/include/nlohmann/json.hpp: In member function ‘bool nlohmann::detail::binary_reader<BasicJsonType, InputAdapterType, SAX>::parse_cbor_internal(bool, nlohmann::detail::cbor_tag_handler_t)’: [134](https://github.com/skullanbones/mpeg2ts/actions/runs/6435208150/job/17475979377#step:5:135) /home/runner/work/mpeg2ts/mpeg2ts/3rd-party/json-3.9.1/include/nlohmann/json.hpp:8272:80: error: useless cast to type ‘std::size_t’ {aka ‘long unsigned int’} [-Werror=useless-cast] [135](https://github.com/skullanbones/mpeg2ts/actions/runs/6435208150/job/17475979377#step:5:136) 8272 | return get_number(input_format_t::cbor, len) && get_cbor_array(static_cast<std::size_t>(len), tag_handler); [136](https://github.com/skullanbones/mpeg2ts/actions/runs/6435208150/job/17475979377#step:5:137) |