mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
Fix UHD crash with DRM
This commit is contained in:
parent
50299f178f
commit
fe3681f6eb
4
video.c
4
video.c
@ -1161,7 +1161,7 @@ static void EglInit(void)
|
|||||||
EGLContext context;
|
EGLContext context;
|
||||||
|
|
||||||
// create egl context
|
// create egl context
|
||||||
setenv("MESA_GL_VERSION_OVERRIDE","3.3",0);
|
setenv("MESA_GL_VERSION_OVERRIDE","3.3",0);
|
||||||
make_egl();
|
make_egl();
|
||||||
GLenum err = glewInit();
|
GLenum err = glewInit();
|
||||||
|
|
||||||
@ -3599,7 +3599,7 @@ static void CuvidMixVideo(CuvidDecoder * decoder, __attribute__((unused))
|
|||||||
deband.grain = 0.0f; // no grain in HDR
|
deband.grain = 0.0f; // no grain in HDR
|
||||||
img->color.sig_scale = 1.0f;
|
img->color.sig_scale = 1.0f;
|
||||||
pl->shift_x = -0.5f;
|
pl->shift_x = -0.5f;
|
||||||
#ifdef VAAPI
|
#if defined VAAPI || defined USE_DRM
|
||||||
render_params.peak_detect_params = NULL;
|
render_params.peak_detect_params = NULL;
|
||||||
#endif
|
#endif
|
||||||
// img->color.primaries = PL_COLOR_PRIM_BT_2020;
|
// img->color.primaries = PL_COLOR_PRIM_BT_2020;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user