1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Update for latest FFMPEG

This commit is contained in:
jojo61 2023-02-13 10:11:12 +01:00
parent 90194d4b6c
commit da33b90f94

View File

@ -268,7 +268,9 @@ void CodecVideoOpen(VideoDecoder *decoder, int codec_id) {
#ifdef YADIF #ifdef YADIF
deint = 2; deint = 2;
#endif #endif
#if defined VAAPI #if defined VAAPI
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(59,8,100)
// decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1 // decoder->VideoCtx->extra_hw_frames = 8; // VIDEO_SURFACES_MAX +1
if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) { if (video_codec->capabilities & (AV_CODEC_CAP_AUTO_THREADS)) {
Debug(3, "codec: auto threads enabled"); Debug(3, "codec: auto threads enabled");
@ -279,6 +281,7 @@ void CodecVideoOpen(VideoDecoder *decoder, int codec_id) {
Debug(3, "codec: supports truncated packets"); Debug(3, "codec: supports truncated packets");
// decoder->VideoCtx->flags |= CODEC_FLAG_TRUNCATED; // decoder->VideoCtx->flags |= CODEC_FLAG_TRUNCATED;
} }
#endif
// FIXME: own memory management for video frames. // FIXME: own memory management for video frames.
if (video_codec->capabilities & AV_CODEC_CAP_DR1) { if (video_codec->capabilities & AV_CODEC_CAP_DR1) {
Debug(3, "codec: can use own buffer management"); Debug(3, "codec: can use own buffer management");