From da33b90f94a614fc9bc83b102d9e71d37f1477fd Mon Sep 17 00:00:00 2001 From: jojo61 Date: Mon, 13 Feb 2023 10:11:12 +0100 Subject: [PATCH] Update for latest FFMPEG --- codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codec.c b/codec.c index 27245d5..db9a805 100644 --- a/codec.c +++ b/codec.c @@ -268,7 +268,9 @@ void CodecVideoOpen(VideoDecoder *decoder, int codec_id) { #ifdef YADIF deint = 2; #endif + #if defined VAAPI +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,8,100) // decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1 if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) { Debug(3, "codec: auto threads enabled"); @@ -279,6 +281,7 @@ void CodecVideoOpen(VideoDecoder *decoder, int codec_id) { Debug(3, "codec: supports truncated packets"); // decoder->VideoCtx->flags |= CODEC_FLAG_TRUNCATED; } +#endif // FIXME: own memory management for video frames. if (video_codec->capabilities & AV_CODEC_CAP_DR1) { Debug(3, "codec: can use own buffer management");