[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1004783: kodi-inputstream-ffmpegdirect: FTBFS in ffmpeg 5.0



Source: kodi-inputstream-ffmpegdirect
Version: 19.0.0+ds1-1
Severity: important
X-Debbugs-Cc: sramacher@debian.org
Tags: sid bookworm ftbfs
Usertags: ffmpeg5.0

kodi-inputstream-ffmpegdirect FTBFS with ffmpeg 5.0 in experimental:

[ 62%] Building CXX object CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/TimeshiftStream.cpp.o
/usr/lib/ccache/c++ -DADDON_GLOBAL_VERSION_FILESYSTEM_USED -DADDON_GLOBAL_VERSION_GENERAL_USED -DADDON_GLOBAL_VERSION_MAIN_USED -DADDON_GLOBAL_VERSION_NETWORK_USED -DADDON_GLOBAL_VERSION_TOOLS_USED -DADDON_INSTANCE_VERSION_INPUTSTREAM_USED -DBUILD_KODI_ADDON -DFFMPEGDIRECT_VERSION=19.0.0 -Dinputstream_ffmpegdirect_EXPORTS  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -DTARGET_POSIX -DTARGET_LINUX -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_HEAP=1 -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -DHAVE_LINUX_MEMFD=1 -DHAVE_STATX=1 -DHAVE_SSE=1 -DHAVE_SSE2=1 -DHAVE_SSE3=1 -DHAVE_SSSE3=1 -DHAVE_SSE4_1=1 -std=c++14 -MD -MT CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/TimeshiftStream.cpp.o -MF CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/TimeshiftStream.cpp.o.d -o CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/TimeshiftStream.cpp.o -c /<<PKGBUILDDIR>>/src/stream/TimeshiftStream.cpp
In file included from /<<PKGBUILDDIR>>/src/stream/FFmpegStream.h:13,
                 from /<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:8:
/<<PKGBUILDDIR>>/src/stream/DemuxStream.h:36:7: warning: ‘ffmpegdirect::DemuxStream’ declared with greater visibility than the type of its field ‘ffmpegdirect::DemuxStream::cryptoSession’ [-Wattributes]
   36 | class DemuxStream
      |       ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/stream/FFmpegStream.h:14,
                 from /<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:8:
/<<PKGBUILDDIR>>/src/stream/CurlInput.h:23:7: warning: ‘ffmpegdirect::CurlInput’ declared with greater visibility than the type of its field ‘ffmpegdirect::CurlInput::m_pFile’ [-Wattributes]
   23 | class CurlInput
      |       ^~~~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘bool ffmpegdirect::FFmpegStream::Open(bool)’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:684:37: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  684 |       iformat = av_find_input_format("mpeg");
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
      |                                     |
      |                                     const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:686:37: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  686 |       iformat = av_find_input_format("mpeg");
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
      |                                     |
      |                                     const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:688:37: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  688 |       iformat = av_find_input_format("mpegts");
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
      |                                     |
      |                                     const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:690:37: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  690 |       iformat = av_find_input_format("mjpeg");
      |                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                     |
      |                                     const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:737:40: error: assignment of member ‘AVInputFormat::flags’ in read-only object
  737 |       m_pFormatContext->iformat->flags |= AVFMT_NOGENSEARCH;
      |                                        ^
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:789:30: error: ‘AVFMT_FLAG_KEEP_SIDE_DATA’ was not declared in this scope
  789 |   m_pFormatContext->flags |= AVFMT_FLAG_KEEP_SIDE_DATA;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:831:72: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec_info_nb_frames’
  831 |             if ((st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && st->codec_info_nb_frames > 0) ||
      |                                                                        ^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘bool ffmpegdirect::FFmpegStream::OpenWithCURL(AVInputFormat*)’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:994:35: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
  994 |     iformat = av_find_input_format("s16be");
      |               ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                   |
      |                                   const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1002:42: error: invalid conversion from ‘AVInputFormat**’ to ‘const AVInputFormat**’ [-fpermissive]
 1002 |       av_probe_input_buffer(m_ioContext, &iformat, strFile.c_str(), NULL, 0, 0);
      |                                          ^~~~~~~~
      |                                          |
      |                                          AVInputFormat**
In file included from /<<PKGBUILDDIR>>/src/stream/DemuxStream.h:25,
                 from /<<PKGBUILDDIR>>/src/stream/FFmpegStream.h:13,
                 from /<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:8:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:2070:66: note:   initializing argument 2 of ‘int av_probe_input_buffer(AVIOContext*, const AVInputFormat**, const char*, void*, unsigned int, unsigned int)’
 2070 | int av_probe_input_buffer(AVIOContext *pb, const AVInputFormat **fmt,
      |                                            ~~~~~~~~~~~~~~~~~~~~~~^~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1043:40: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
 1043 |         iformat2 = av_find_input_format("spdif");
      |                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                        |
      |                                        const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1052:42: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
 1052 |           iformat2 = av_find_input_format("dts");
      |                      ~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                          |
      |                                          const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1075:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
 1075 |         iformat = av_find_input_format("aac");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                       |
      |                                       const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1077:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
 1077 |         iformat = av_find_input_format("aac");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                       |
      |                                       const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1079:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
 1079 |         iformat = av_find_input_format("flv");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                       |
      |                                       const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1081:39: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive]
 1081 |         iformat = av_find_input_format("flv");
      |                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                       |
      |                                       const AVInputFormat*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘virtual void ffmpegdirect::FFmpegStream::UpdateCurrentPTS()’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1150:27: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘cur_dts’
 1150 |     if (stream && stream->cur_dts != (int64_t)AV_NOPTS_VALUE)
      |                           ^~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1152:44: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘cur_dts’
 1152 |       double ts = ConvertTimestamp(stream->cur_dts, stream->time_base.den, stream->time_base.num);
      |                                            ^~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘void ffmpegdirect::FFmpegStream::ParsePacket(AVPacket*)’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1567:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
 1567 |       AVCodec* codec = avcodec_find_decoder(st->codecpar->codec_id);
      |                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            const AVCodec*
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘ffmpegdirect::TRANSPORT_STREAM_STATE ffmpegdirect::FFmpegStream::TransportStreamAudioState()’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1644:42: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘cur_dts’
 1644 |             m_startTime = av_rescale(st->cur_dts, st->time_base.num, st->time_base.den) - 0.000001;
      |                                          ^~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1664:42: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘cur_dts’
 1664 |             m_startTime = av_rescale(st->cur_dts, st->time_base.num, st->time_base.den) - 0.000001;
      |                                          ^~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘ffmpegdirect::TRANSPORT_STREAM_STATE ffmpegdirect::FFmpegStream::TransportStreamVideoState()’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1697:42: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘cur_dts’
 1697 |             m_startTime = av_rescale(st->cur_dts, st->time_base.num, st->time_base.den) - 0.000001;
      |                                          ^~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1717:42: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘cur_dts’
 1717 |             m_startTime = av_rescale(st->cur_dts, st->time_base.num, st->time_base.den) - 0.000001;
      |                                          ^~~~~~~
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘ffmpegdirect::DemuxStream* ffmpegdirect::FFmpegStream::AddStream(int)’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:1834:9: error: ‘av_get_channel_layout_string’ was not declared in this scope; did you mean ‘av_get_sample_fmt_string’?
 1834 |         av_get_channel_layout_string(buf, 31, st->iChannels, st->iChannelLayout);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         av_get_sample_fmt_string
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp: In member function ‘virtual std::string ffmpegdirect::FFmpegStream::GetStreamCodecName(int)’:
/<<PKGBUILDDIR>>/src/stream/FFmpegStream.cpp:2073:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
 2073 |     AVCodec* codec = avcodec_find_decoder(stream->codec);
      |                      ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                          |
      |                                          const AVCodec*
make[3]: *** [CMakeFiles/inputstream.ffmpegdirect.dir/build.make:135: CMakeFiles/inputstream.ffmpegdirect.dir/src/stream/FFmpegStream.cpp.o] Error 1

Cheers
-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


Reply to: