Obsolete library/mozjs-60
[oi-userland.git] / components / encumbered / megasync / patches / 08-freeimage.cpp.patch
blobfc9f374c610eaa4b79e5bd69b5527a804a4b39f3
1 diff -Nru MEGAsync-4.9.5.0_Linux.orig/src/MEGASync/mega/src/gfx/freeimage.cpp MEGAsync-4.9.5.0_Linux/src/MEGASync/mega/src/gfx/freeimage.cpp
2 --- MEGAsync-4.9.5.0_Linux.orig/src/MEGASync/mega/src/gfx/freeimage.cpp 2023-06-08 09:24:13.000000000 +0200
3 +++ MEGAsync-4.9.5.0_Linux/src/MEGASync/mega/src/gfx/freeimage.cpp 2023-10-03 09:47:52.023993600 +0200
4 @@ -209,12 +209,6 @@
6 #ifdef HAVE_FFMPEG
8 -#ifdef AV_CODEC_CAP_TRUNCATED
9 -#define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
10 -#else
11 -#define CAP_TRUNCATED CODEC_CAP_TRUNCATED
12 -#endif
14 const char *GfxProviderFreeImage::supportedformatsFfmpeg()
16 return ".264.265.3g2.3gp.3gpa.3gpp.3gpp2.mp3"
17 @@ -330,10 +324,6 @@
19 // Force seeking to key frames
20 formatContext->seek2any = false;
21 - if (decoder->capabilities & CAP_TRUNCATED)
22 - {
23 - codecContext->flags |= CAP_TRUNCATED;
24 - }
26 AVPixelFormat sourcePixelFormat = static_cast<AVPixelFormat>(codecParm->format);
27 AVPixelFormat targetPixelFormat = AV_PIX_FMT_BGR24; //raw data expected by freeimage is in this format