]> source.dussan.org Git - tigervnc.git/commit
Fix compilation issue. 1436/head
authorChris <chris_github@functionalfuture.com>
Mon, 28 Feb 2022 17:59:15 +0000 (12:59 -0500)
committerChris <chris_github@functionalfuture.com>
Mon, 28 Feb 2022 17:59:15 +0000 (12:59 -0500)
commitd80a3d2fa81207c34a31f56073bc4b67101e3c72
tree4d28eb37bb58f55e22633b499a7d9bc5c9ccc464
parent485866d5f7d5a888f7805e477e3f6c6224f2051e
Fix compilation issue.

Ubuntu 20.04
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
libx264-dev:amd64 2:0.155.2917+git0a84d98-2

[ 11%] Building CXX object common/rfb/CMakeFiles/rfb.dir/H264LibavDecoderContext.cxx.o
tigervnc/common/rfb/H264LibavDecoderContext.cxx: In member function ‘virtual bool rfb::H264LibavDecoderContext::initCodec()’:
tigervnc/common/rfb/H264LibavDecoderContext.cxx:50:40: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
   50 |   AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_H264);
      |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
      |                                        |
      |                                        const AVCodec*
make[2]: *** [common/rfb/CMakeFiles/rfb.dir/build.make:895: common/rfb/CMakeFiles/rfb.dir/H264LibavDecoderContext.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:597: common/rfb/CMakeFiles/rfb.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
common/rfb/H264LibavDecoderContext.cxx