From eabbbcb4424f2ab54ad70d34994ddb2198bdfd10 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Sun, 20 Jun 2021 14:56:10 +0200 Subject: [PATCH] Fix for softhdvaapi with libplacebo >= 3.Mai 2021 Needs fix for libplacebo as well. Or use libplacebo older that 3. Mai 2021 --- softhdcuvid.cpp | 2 +- video.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/softhdcuvid.cpp b/softhdcuvid.cpp index ee38b82..7d60cbc 100644 --- a/softhdcuvid.cpp +++ b/softhdcuvid.cpp @@ -63,7 +63,7 @@ extern void ToggleLUT(); /// vdr-plugin version number. /// Makefile extracts the version number for generating the file name /// for the distribution archive. -static const char *const VERSION = "3.5" +static const char *const VERSION = "3.5.1" #ifdef GIT_REV "-GIT" GIT_REV #endif diff --git a/video.c b/video.c index 394cfc0..0db5022 100644 --- a/video.c +++ b/video.c @@ -2435,7 +2435,7 @@ void generateVAAPIImage(CuvidDecoder * decoder, int index, const AVFrame * frame if (decoder->PixFmt == AV_PIX_FMT_NV12) { fmt = pl_find_named_fmt(p->gpu, n == 0 ? "r8" : "rg8"); // 8 Bit YUV } else { - fmt = pl_find_named_fmt(p->gpu, n == 0 ? "r16" : "rg16"); // 10 Bit YUV + fmt = pl_find_fourcc(p->gpu, n == 0 ? 0x20363152 : 0x32335247); // 10 Bit YUV } #endif assert(fmt != NULL); @@ -4249,7 +4249,7 @@ void make_osd_overlay(int x, int y, int width, int height) }); } // make overlay - pl_tex_clear(p->gpu, pl->plane.texture, (float[4]) { 0 }); + //pl_tex_clear(p->gpu, pl->plane.texture, (float[4]) { 0 }); pl->plane.components = 4; pl->plane.shift_x = 0.0f; pl->plane.shift_y = 0.0f;