|
|
@ -0,0 +1,27 @@ |
|
|
|
diff -Naur MEGAcmd-1.7.0_Linux.orig/sdk/src/gfx/freeimage.cpp MEGAcmd-1.7.0_Linux/sdk/src/gfx/freeimage.cpp
|
|
|
|
--- MEGAcmd-1.7.0_Linux.orig/sdk/src/gfx/freeimage.cpp 2024-05-17 16:19:43.000000000 +0200
|
|
|
|
+++ MEGAcmd-1.7.0_Linux/sdk/src/gfx/freeimage.cpp 2024-05-25 09:19:52.452609376 +0200
|
|
|
|
@@ -209,12 +209,6 @@
|
|
|
|
|
|
|
|
#ifdef HAVE_FFMPEG |
|
|
|
|
|
|
|
-#ifdef AV_CODEC_CAP_TRUNCATED
|
|
|
|
-#define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
|
|
|
|
-#else
|
|
|
|
-#define CAP_TRUNCATED CODEC_CAP_TRUNCATED
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
const char *GfxProviderFreeImage::supportedformatsFfmpeg() |
|
|
|
{ |
|
|
|
return ".264.265.3g2.3gp.3gpa.3gpp.3gpp2.mp3" |
|
|
|
@@ -330,10 +324,6 @@
|
|
|
|
|
|
|
|
// Force seeking to key frames |
|
|
|
formatContext->seek2any = false; |
|
|
|
- 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 |