diff options
Diffstat (limited to 'src/plugins/thumbnailffmpeg_extractor.c')
-rw-r--r-- | src/plugins/thumbnailffmpeg_extractor.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/thumbnailffmpeg_extractor.c b/src/plugins/thumbnailffmpeg_extractor.c index c2af240..1b7347a 100644 --- a/src/plugins/thumbnailffmpeg_extractor.c +++ b/src/plugins/thumbnailffmpeg_extractor.c | |||
@@ -107,7 +107,17 @@ | |||
107 | /** | 107 | /** |
108 | * Number of bytes to feed to libav in one go, with padding (padding is zeroed). | 108 | * Number of bytes to feed to libav in one go, with padding (padding is zeroed). |
109 | */ | 109 | */ |
110 | #ifdef AV_INPUT_BUFFER_PADDING_SIZE | ||
111 | #define PADDED_BUFFER_SIZE (BUFFER_SIZE + AV_INPUT_BUFFER_PADDING_SIZE) | ||
112 | #else | ||
113 | /* legacy */ | ||
110 | #define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE) | 114 | #define PADDED_BUFFER_SIZE (BUFFER_SIZE + FF_INPUT_BUFFER_PADDING_SIZE) |
115 | #endif | ||
116 | |||
117 | #ifndef AV_CODEC_FLAG_QSCALE | ||
118 | #define AV_CODEC_FLAG_QSCALE CODEC_FLAG_QSCALE | ||
119 | #endif | ||
120 | |||
111 | 121 | ||
112 | /** | 122 | /** |
113 | * Global handle to MAGIC data. | 123 | * Global handle to MAGIC data. |
@@ -355,7 +365,7 @@ create_thumbnail (AVCodecContext *pCodecCtx, int src_width, int src_height, | |||
355 | encoder_codec_ctx->mb_lmin = encoder_codec_ctx->qmin * FF_QP2LAMBDA; | 365 | encoder_codec_ctx->mb_lmin = encoder_codec_ctx->qmin * FF_QP2LAMBDA; |
356 | encoder_codec_ctx->mb_lmax = encoder_codec_ctx->qmax * FF_QP2LAMBDA; | 366 | encoder_codec_ctx->mb_lmax = encoder_codec_ctx->qmax * FF_QP2LAMBDA; |
357 | #endif | 367 | #endif |
358 | encoder_codec_ctx->flags = CODEC_FLAG_QSCALE; | 368 | encoder_codec_ctx->flags = AV_CODEC_FLAG_QSCALE; |
359 | encoder_codec_ctx->global_quality = encoder_codec_ctx->qmin * FF_QP2LAMBDA; | 369 | encoder_codec_ctx->global_quality = encoder_codec_ctx->qmin * FF_QP2LAMBDA; |
360 | 370 | ||
361 | dst_frame->pts = 1; | 371 | dst_frame->pts = 1; |