File fix-ffmpeg-6-compat.patch of Package megasync
Submodule src/MEGASync/mega contains modified content
diff --git a/src/MEGASync/mega/src/gfx/freeimage.cpp b/src/MEGASync/mega/src/gfx/freeimage.cpp
index f4864b0d0..97d630956 100644
--- a/src/MEGASync/mega/src/gfx/freeimage.cpp
+++ b/src/MEGASync/mega/src/gfx/freeimage.cpp
@@ -207,11 +207,11 @@ bool GfxProviderFreeImage::readbitmapFreeimage(const LocalPath& imagePath, int s
#ifdef HAVE_FFMPEG
-#ifdef AV_CODEC_CAP_TRUNCATED
-#define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
-#else
-#define CAP_TRUNCATED CODEC_CAP_TRUNCATED
-#endif
+// #ifdef AV_CODEC_CAP_TRUNCATED
+// #define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
+// #else
+// #define CAP_TRUNCATED CODEC_CAP_TRUNCATED
+// #endif
const char *GfxProviderFreeImage::supportedformatsFfmpeg()
{
@@ -315,10 +315,10 @@ bool GfxProviderFreeImage::readbitmapFfmpeg(const LocalPath& imagePath, int /*si
// Force seeking to key frames
formatContext->seek2any = false;
- if (decoder->capabilities & CAP_TRUNCATED)
- {
- codecContext->flags |= CAP_TRUNCATED;
- }
+ // if (decoder->capabilities & CAP_TRUNCATED)
+ // {
+ // codecContext->flags |= CAP_TRUNCATED;
+ // }
AVPixelFormat sourcePixelFormat = static_cast<AVPixelFormat>(codecParm->format);
AVPixelFormat targetPixelFormat = AV_PIX_FMT_BGR24; //raw data expected by freeimage is in this format