Niklas Poslovski
2023-10-03 161e6f4b20fc05166a977814fece4629df762af8
commit | author | age
161e6f 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
NP 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
6fe5ab 4 @@ -209,12 +209,6 @@
NP 5  
6  #ifdef HAVE_FFMPEG
7  
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
13 -
14  const char *GfxProviderFreeImage::supportedformatsFfmpeg()
15  {
16      return  ".264.265.3g2.3gp.3gpa.3gpp.3gpp2.mp3"
161e6f 17 @@ -330,10 +324,6 @@
9a2429 18  
S 19      // Force seeking to key frames
20      formatContext->seek2any = false;
6fe5ab 21 -    if (decoder->capabilities & CAP_TRUNCATED)
NP 22 -    {
23 -        codecContext->flags |= CAP_TRUNCATED;
24 -    }
25  
26      AVPixelFormat sourcePixelFormat = static_cast<AVPixelFormat>(codecParm->format);
27      AVPixelFormat targetPixelFormat = AV_PIX_FMT_BGR24; //raw data expected by freeimage is in this format