MEGAsync icon indicating copy to clipboard operation
MEGAsync copied to clipboard

ffmpeg 5.0 build error

Open blackPantherOS opened this issue 2 years ago • 4 comments

ffmpeg 5.0 Gcc 11.2.1

 CXX      src/gfx/libmega_la-external.lo
  CXX      src/gfx/libmega_la-freeimage.lo
src/gfx/freeimage.cpp: In member function ‘bool mega::GfxProcFreeImage::readbitmapFfmpeg(mega::FileAccess*, const mega::LocalPath&, int)’:
src/gfx/freeimage.cpp:239:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  239 |     AVCodec* decoder = avcodec_find_decoder(codecId);
      |                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                            |
      |                                            const AVCodec*
src/gfx/freeimage.cpp:256:18: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘skip_to_keyframe’
  256 |     videoStream->skip_to_keyframe = true;
      |                  ^~~~~~~~~~~~~~~~
src/gfx/freeimage.cpp:329:19: warning: ‘void av_init_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  329 |     av_init_packet(&packet);
      |     ~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/libavformat/avformat.h:316,
                 from src/gfx/freeimage.cpp:50:
/usr/include/libavcodec/packet.h:506:6: note: declared here
  506 | void av_init_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
make[2]: Leaving directory 'MEGAsync-4.6.6.0_Linux/src/MEGASync/mega'
make[2]: *** [Makefile:2676: src/gfx/libmega_la-freeimage.lo] Error 1
make[1]: *** [Makefile:3382: all-recursive] Error 1
make: *** [Makefile:1533: all] Error 2
make[1]: Leaving directory 'MEGAsync-4.6.6.0_Linux/src/MEGASync/mega'

blackPantherOS avatar May 10 '22 06:05 blackPantherOS

Hello @blackPantherOS Sorry for the delay on our response and thank you for reporting this to us. We are not using ffmpeg 5.0 yet however another MEGA user has sent us a patch that should fix the building problem with ffmpeg 5.0 (however it has not yet been tested from our side): https://github.com/meganz/sdk/pull/2614/files

Thanks again for reporting this. It will be fixed in future releases.

voc-mega avatar May 16 '22 15:05 voc-mega

Hello @blackPantherOS Sorry for the delay on our response and thank you for reporting this to us. We are not using ffmpeg 5.0 yet however another MEGA user has sent us a patch that should fix the building problem with ffmpeg 5.0 (however it has not yet been tested from our side): https://github.com/meganz/sdk/pull/2614/files

Thanks again for reporting this. It will be fixed in future releases.

I understand but all distro switched to 5.x.x already, We will check this patch in our build, thank you @voc-mega !

blackPantherOS avatar May 18 '22 07:05 blackPantherOS

Any update on this? It's been a year.

Justinzobel avatar Oct 23 '23 00:10 Justinzobel

Fedora 39 is already on ffmpeg 6.0. This issue seems to prevent updating various runtimes for the flatpak as per https://github.com/flathub/nz.mega.MEGAsync/pull/27

hevanaa avatar Nov 07 '23 20:11 hevanaa