From fefd3e83f6d60eae40f45ed2f7423dc896c75b8f Mon Sep 17 00:00:00 2001 From: jojo61 Date: Fri, 14 Jan 2022 15:24:56 +0100 Subject: [PATCH] Fix VideoWindow with LIBPLACEBO_GL --- softhdcuvid.cpp | 2 +- video.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/softhdcuvid.cpp b/softhdcuvid.cpp index 627e02c..7144b17 100644 --- a/softhdcuvid.cpp +++ b/softhdcuvid.cpp @@ -61,7 +61,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.4" +static const char *const VERSION = "3.5.5" #ifdef GIT_REV "-GIT" GIT_REV #endif diff --git a/video.c b/video.c index ad42497..1f154f6 100644 --- a/video.c +++ b/video.c @@ -3996,9 +3996,9 @@ static void CuvidMixVideo(CuvidDecoder *decoder, __attribute__((unused)) int lev // Output scale #ifdef PLACEBO_GL target->crop.x0 = dst_video_rect.x1 / 2 + dst_video_rect.x0 / 2 + 1; - target->crop.y1 = dst_video_rect.y0; + target->crop.y0 = VideoWindowHeight - dst_video_rect.y0; target->crop.x1 = dst_video_rect.x1; - target->crop.y0 = dst_video_rect.y1; + target->crop.y1 = VideoWindowHeight - dst_video_rect.y1; #else target->crop.x0 = dst_video_rect.x1 / 2 + dst_video_rect.x0 / 2 + 1; target->crop.y0 = dst_video_rect.y0; @@ -4015,9 +4015,9 @@ static void CuvidMixVideo(CuvidDecoder *decoder, __attribute__((unused)) int lev #ifdef PLACEBO_GL target->crop.x0 = dst_video_rect.x0; - target->crop.y1 = dst_video_rect.y0; + target->crop.y0 = VideoWindowHeight - dst_video_rect.y0; target->crop.x1 = dst_video_rect.x1; - target->crop.y0 = dst_video_rect.y1; + target->crop.y1 = VideoWindowHeight - dst_video_rect.y1; #else target->crop.x0 = dst_video_rect.x0; target->crop.y0 = dst_video_rect.y0;