]> git.pld-linux.org Git - packages/libextractor.git/blame - ffmpeg4.patch
- fix building with ffmpeg 4.0
[packages/libextractor.git] / ffmpeg4.patch
CommitLineData
1ad84a1b
JR
1--- libextractor-1.6/src/plugins/thumbnailffmpeg_extractor.c~ 2017-10-15 21:21:23.000000000 +0200
2+++ libextractor-1.6/src/plugins/thumbnailffmpeg_extractor.c 2018-04-29 22:57:40.989129194 +0200
3@@ -107,7 +107,7 @@
4 /**
5 * Number of bytes to feed to libav in one go, with padding (padding is zeroed).
6 */
7-#define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE)
8+#define PADDED_BUFFER_SIZE (BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE)
9
10 /**
11 * Global handle to MAGIC data.
12@@ -355,7 +355,7 @@
13 encoder_codec_ctx->mb_lmin = encoder_codec_ctx->qmin * FF_QP2LAMBDA;
14 encoder_codec_ctx->mb_lmax = encoder_codec_ctx->qmax * FF_QP2LAMBDA;
15 #endif
16- encoder_codec_ctx->flags = CODEC_FLAG_QSCALE;
17+ encoder_codec_ctx->flags = AV_CODEC_FLAG_QSCALE;
18 encoder_codec_ctx->global_quality = encoder_codec_ctx->qmin * FF_QP2LAMBDA;
19
20 dst_frame->pts = 1;
This page took 0.080005 seconds and 4 git commands to generate.