summarylogtreecommitdiffstats
path: root/ffmpeg.patch
blob: 036547f11ca5459bccea48eb82e0a43a55357404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --unified --recursive --text v4.6.2.0/src/gfx/freeimage.cpp v4.6.3.0/src/gfx/freeimage.cpp
--- v4.6.2.0/src/gfx/freeimage.cpp	2022-02-05 23:51:36.555355000 +0800
+++ v4.6.3.0/src/gfx/freeimage.cpp	2022-02-06 00:21:20.888555180 +0800
@@ -240,7 +240,7 @@
 
     // Find decoder for video stream
     AVCodecID codecId = codecParm->codec_id;
-    AVCodec* decoder = avcodec_find_decoder(codecId);
+    const AVCodec* decoder = avcodec_find_decoder(codecId);
     if (!decoder)
     {
         LOG_warn << "Codec not found: " << codecId;
@@ -257,7 +257,6 @@
 
     // Force seeking to key frames
     formatContext->seek2any = false;
-    videoStream->skip_to_keyframe = true;
     if (decoder->capabilities & CAP_TRUNCATED)
     {
         codecContext->flags |= CAP_TRUNCATED;