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
8 -#ifdef AV_CODEC_CAP_TRUNCATED
9 -#define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
11 -#define CAP_TRUNCATED CODEC_CAP_TRUNCATED
14 const char *GfxProviderFreeImage::supportedformatsFfmpeg()
16 return ".264.265.3g2.3gp.3gpa.3gpp.3gpp2.mp3"
19 // Force seeking to key frames
20 formatContext->seek2any = false;
21 - if (decoder->capabilities & CAP_TRUNCATED)
23 - codecContext->flags |= CAP_TRUNCATED;
26 AVPixelFormat sourcePixelFormat = static_cast<AVPixelFormat>(codecParm->format);
27 AVPixelFormat targetPixelFormat = AV_PIX_FMT_BGR24; //raw data expected by freeimage is in this format