Skip to content

FFMpeg 5.1.1+ support

[2/4] Building CXX object extern/osg-ffmpeg-videoplayer/CMakeFiles/osg-ffmpeg-videoplayer.dir/audiodecoder.cpp.o
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘void Video::MovieAudioDecoder::setupFormat()’:
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:112:50: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  112 |     uint64_t inputChannelLayout = mAudioContext->channel_layout;
      |                                                  ^~~~~~~~~~~~~~
In file included from /home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.hpp:17,
                 from /home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:1:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
 1060 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:112:50: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  112 |     uint64_t inputChannelLayout = mAudioContext->channel_layout;
      |                                                  ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
 1060 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:112:50: warning: ‘AVCodecContext::channel_layout’ is deprecated [-Wdeprecated-declarations]
  112 |     uint64_t inputChannelLayout = mAudioContext->channel_layout;
      |                                                  ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1060:14: note: declared here
 1060 |     uint64_t channel_layout;
      |              ^~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:114:75: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  114 |         inputChannelLayout = av_get_default_channel_layout(mAudioContext->channels);
      |                                                                           ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:114:75: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  114 |         inputChannelLayout = av_get_default_channel_layout(mAudioContext->channels);
      |                                                                           ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:114:75: warning: ‘AVCodecContext::channels’ is deprecated [-Wdeprecated-declarations]
  114 |         inputChannelLayout = av_get_default_channel_layout(mAudioContext->channels);
      |                                                                           ^~~~~~~~
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:1006:9: note: declared here
 1006 |     int channels;
      |         ^~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:114:59: warning: ‘int64_t av_get_default_channel_layout(int)’ is deprecated [-Wdeprecated-declarations]
  114 |         inputChannelLayout = av_get_default_channel_layout(mAudioContext->channels);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavutil/frame.h:33,
                 from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:35:
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:457:9: note: declared here
  457 | int64_t av_get_default_channel_layout(int nb_channels);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:127:51: warning: ‘SwrContext* swr_alloc_set_opts(SwrContext*, int64_t, AVSampleFormat, int, int64_t, AVSampleFormat, int, int, void*)’ is deprecated [-Wdeprecated-declarations]
  127 |         mAudioResampler->mSwr = swr_alloc_set_opts(mAudioResampler->mSwr,
      |                                 ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
  128 |                           mOutputChannelLayout,
      |                           ~~~~~~~~~~~~~~~~~~~~~    
  129 |                           mOutputSampleFormat,
      |                           ~~~~~~~~~~~~~~~~~~~~     
  130 |                           mOutputSampleRate,
      |                           ~~~~~~~~~~~~~~~~~~       
  131 |                           inputChannelLayout,
      |                           ~~~~~~~~~~~~~~~~~~~      
  132 |                           inputSampleFormat,
      |                           ~~~~~~~~~~~~~~~~~~       
  133 |                           inputSampleRate,
      |                           ~~~~~~~~~~~~~~~~         
  134 |                           0,                             // logging level offset
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  135 |                           nullptr);                      // log context
      |                           ~~~~~~~~                 
In file included from /home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:14:
/usr/include/x86_64-linux-gnu/libswresample/swresample.h:260:20: note: declared here
  260 | struct SwrContext *swr_alloc_set_opts(struct SwrContext *s,
      |                    ^~~~~~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘int Video::MovieAudioDecoder::synchronize_audio()’:
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:161:54: warning: ‘int av_get_channel_layout_nb_channels(uint64_t)’ is deprecated [-Wdeprecated-declarations]
  161 |                     av_get_channel_layout_nb_channels(mOutputChannelLayout);
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:449:5: note: declared here
  449 | int av_get_channel_layout_nb_channels(uint64_t channel_layout);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘int Video::MovieAudioDecoder::audio_decode_frame(AVFrame*, int&)’:
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:207:94: warning: ‘int av_get_channel_layout_nb_channels(uint64_t)’ is deprecated [-Wdeprecated-declarations]
  207 |                     if(av_samples_alloc(&mDataBuf, nullptr, av_get_channel_layout_nb_channels(mOutputChannelLayout),
      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:449:5: note: declared here
  449 | int av_get_channel_layout_nb_channels(uint64_t channel_layout);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:224:79: warning: ‘int av_get_channel_layout_nb_channels(uint64_t)’ is deprecated [-Wdeprecated-declarations]
  224 |             int result = frame->nb_samples * av_get_channel_layout_nb_channels(mOutputChannelLayout) *
      |                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:449:5: note: declared here
  449 | int av_get_channel_layout_nb_channels(uint64_t channel_layout);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp: In member function ‘size_t Video::MovieAudioDecoder::read(char*, size_t)’:
/home/psi29a/Workspace/openmw/openmw/extern/osg-ffmpeg-videoplayer/audiodecoder.cpp:301:56: warning: ‘int av_get_channel_layout_nb_channels(uint64_t)’ is deprecated [-Wdeprecated-declarations]
  301 |                     * av_get_channel_layout_nb_channels(mOutputChannelLayout);
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/libavutil/channel_layout.h:449:5: note: declared here
  449 | int av_get_channel_layout_nb_channels(uint64_t channel_layout);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/4] Linking CXX executable openmw