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

Fix for softhdvaapi with libplacebo >= 3.Mai 2021

Needs fix for libplacebo as well.
Or use libplacebo older that 3. Mai 2021
This commit is contained in:
jojo61 2021-06-20 14:56:10 +02:00
parent 8f96c06595
commit eabbbcb442
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;