30 lines
903 B
Diff
30 lines
903 B
Diff
--- a/src/gfx/freeimage.cpp 2023-03-03 22:13:58.000000000 +0000
|
|
+++ b/src/gfx/freeimage.cpp 2023-03-14 10:03:10.950216675 +0000
|
|
@@ -212,7 +212,7 @@
|
|
#ifdef AV_CODEC_CAP_TRUNCATED
|
|
#define CAP_TRUNCATED AV_CODEC_CAP_TRUNCATED
|
|
#else
|
|
-#define CAP_TRUNCATED CODEC_CAP_TRUNCATED
|
|
+#define CAP_TRUNCATED 0
|
|
#endif
|
|
|
|
const char *GfxProviderFreeImage::supportedformatsFfmpeg()
|
|
@@ -313,7 +313,7 @@
|
|
|
|
// Find decoder for video stream
|
|
AVCodecID codecId = codecParm->codec_id;
|
|
- AVCodec* decoder = avcodec_find_decoder(codecId);
|
|
+ auto decoder = avcodec_find_decoder(codecId);
|
|
if (!decoder)
|
|
{
|
|
LOG_warn << "Codec not found: " << codecId;
|
|
@@ -330,7 +330,6 @@
|
|
|
|
// Force seeking to key frames
|
|
formatContext->seek2any = false;
|
|
- videoStream->skip_to_keyframe = true;
|
|
if (decoder->capabilities & CAP_TRUNCATED)
|
|
{
|
|
codecContext->flags |= CAP_TRUNCATED;
|
|
|