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

Fix VideoWindow with LIBPLACEBO_GL

This commit is contained in:
jojo61 2022-01-14 15:24:56 +01:00
parent 5c6514929d
commit fefd3e83f6
2 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ extern void ToggleLUT();
/// vdr-plugin version number. /// vdr-plugin version number.
/// Makefile extracts the version number for generating the file name /// Makefile extracts the version number for generating the file name
/// for the distribution archive. /// for the distribution archive.
static const char *const VERSION = "3.5.4" static const char *const VERSION = "3.5.5"
#ifdef GIT_REV #ifdef GIT_REV
"-GIT" GIT_REV "-GIT" GIT_REV
#endif #endif

View File

@ -3996,9 +3996,9 @@ static void CuvidMixVideo(CuvidDecoder *decoder, __attribute__((unused)) int lev
// Output scale // Output scale
#ifdef PLACEBO_GL #ifdef PLACEBO_GL
target->crop.x0 = dst_video_rect.x1 / 2 + dst_video_rect.x0 / 2 + 1; 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.x1 = dst_video_rect.x1;
target->crop.y0 = dst_video_rect.y1; target->crop.y1 = VideoWindowHeight - dst_video_rect.y1;
#else #else
target->crop.x0 = dst_video_rect.x1 / 2 + dst_video_rect.x0 / 2 + 1; target->crop.x0 = dst_video_rect.x1 / 2 + dst_video_rect.x0 / 2 + 1;
target->crop.y0 = dst_video_rect.y0; target->crop.y0 = dst_video_rect.y0;
@ -4015,9 +4015,9 @@ static void CuvidMixVideo(CuvidDecoder *decoder, __attribute__((unused)) int lev
#ifdef PLACEBO_GL #ifdef PLACEBO_GL
target->crop.x0 = dst_video_rect.x0; 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.x1 = dst_video_rect.x1;
target->crop.y0 = dst_video_rect.y1; target->crop.y1 = VideoWindowHeight - dst_video_rect.y1;
#else #else
target->crop.x0 = dst_video_rect.x0; target->crop.x0 = dst_video_rect.x0;
target->crop.y0 = dst_video_rect.y0; target->crop.y0 = dst_video_rect.y0;